How to acquire of various AI channels simultaneously with a different range for each of them?

How to acquire of various AI channels simultaneously with a different range for each of them?

In LabView, I found some examples but in C it is not seem to be any.

Or you can add channels one by one with individual instructions: the follwing code compilation and runs without error on vitual DAQ hardware:

ERR = DAQmxCreateTask ("", &taskH); ")
ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai0', 'AI0', DAQmx_Val_Cfg_Default,-5,0, 5.0, DAQmx_Val_Volts, "");
ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai1', 'AI1', DAQmx_Val_Cfg_Default,-10,0, 10.0, DAQmx_Val_Volts, "");
DAQmxStartTask (taskH);
ERR = DAQmxReadAnalogF64 (taskH, 5, 10.0, DAQmx_Val_GroupByChannel, val, 10, & read, 0);
DAQmxClearTask (taskH);

Tags: NI Software

Similar Questions

  • How can I create a slide show 100% width, but have the caption in different positions for each slide.

    How can I create a slide show 100% width, but have the caption in different positions for each slide.

    There is placement of the legend only one for all the images in a slide show.

    The slideshow widget is specialized to create slideshows of the image. The widget of composition is a much more flexible widget which allows any combination of images and text in the trigger containers or containers of target of the widget. A widget of composition could be used to create a slide show with several legends by image and/or legends of different places for each image. The disadvantage of the widget of composition is that, due to the nature flexible widget, very little is automated for you and so it is much more intensive work to create a slideshow of images using the widget of composition.

    Thank you

    Sanjit

  • After purchasing the cloud creative and used for 2 months (for example), so I don't use it for 3 months. How is it? I don't have to pay the tariff for each month, or is it possible to only pay when I use it again? To resume: if I use it for 5 months a

    After purchasing the cloud creative and used for 2 months (for example), so I don't use it for 3 months. How is it? I don't have to pay the tariff for each month, or is it possible to only pay when I use it again? To resume: if I use it for 5 months a year, I have to pay for only those 5 or 12 months?

    No, if you have a subscription according to the type of subscription, you will have to pay each month or year until that you cancel.

    If you think you would use the apps for only three months, then you will not need three months, then our month to month plan would be best for you because it can be cancelled at any time it does not come with an annual contract for more information see the link below

    Adobe - General conditions of subscription

    Kind regards

    Bani

  • How can I create a new master page with a different set of pages for the menu bar?

    I want to create a new Master Page that could be used for a different set of pages with a different menu pointing to other pages...

    For example:

    Master A to include a menu for pages:

    Page 1, Page 2, Page 3,

    Master B to the guests for the pages menu:

    Page 1, Page 4, Page 5...

    Maybe I would also do Master C and D with a bar of menus different total...

    But how can I isolate the menu bar from the rest of the pages that I don't want it?

    Right click on this page that you want to isolate > menu goto option > exclude from the menu.

    Hope It could help.

  • How to acquire data through several channels in parallel using E 6070 PXI, PXI-4071 and LabVIEW?

    Hello

    I use LabVIEW and NI PXI-4071 PXI NOR 6070E to measure the current through a variable resistance. Now, I use a single channel of SCB - 68, but I want to add another channel at the same time so that I can have two resistors instead of one that I cam measure current through them.

    I have attached a Pdf file showing installation of equipment to use and code LabVIEW also.

    Can someone look at these files and give me some guidelines or ideas that can help me solve this problem, please.

    Thanks in advance.

    Best regards

    Shaheen.

    Your 4071 can do a measure at a time. Your data acquisition cannot measure resistance is not she of the analog inputs.

    However, you could use a multiplexer and multiplexer your 4071 DMM. This habit give you simultaneous action, but can acquire data one after the other, the speed depends on the multiplexer, you choose!

    I hope this helps.

  • How to acquire data from both channels on a PCI-5922 (OR scope)?

    I'm fairly new to LabView (version 8.5.1) and I'm working on my first vi non-teaching.  I need to acquire analog of the two channels of a PCI-5922 data.  I made a single channel using NEITHER brought Express, but you can use NOR carried Express to both channels.  I tried two instances and that left me with a free entries or exits, I also tried to allow the two entries, but I get only one exit.  I think that I don't have my head in the right place with this.  Sorry if this is very basic.

    Thank you... Steve

    Take one of the LabVIEW base tutorials.

    Simply use the Signal from Split. Of course, it's always this evil dynamic data.

  • How to read several channels simultaneously with a minimum

    Hi all

    Please see the attached file. In fact, this is a simplified example of my real application, I didn't understand the second half to reduce the complexity.

    As demonstrated, I have two entries of analago I need to read (position and acceleration) with a SPECIFIC requirement which is:

    At the same time, I make some decisions based on data more recently acquired in the "timed loop. The decision part is not included in this vi. for simplicity. But the fact is that I just need the most recent data (as well as online) make a kind of decisions.

    Everything seems fine and it seems that I collect data in a way desired interval of 1msec. BUT I just discovered that the data I read (in the timed loop) are the most recent one compare is not to the real sensors. In other words, there is a delay in the acquisition process. The value in the timed loop is like 100 msec delayed the release of real sensor, which is generated by the sensor and acquired by DAQ card.

    This problem makes my decision making part of constantly decide according to the before value of 100 msec. Unfortunately, it's terrible to my request, i.e. it is an intolerable delay to the process.

    Are my settings of data acquisition as samples per channel, the number of samples per channel or right of sampling rate? I appreciate if someone can help me with this application. I just need to collect data at 1 kHz, as close as possible in real-time (online) or with a minimum delay, not 100 msec.

    Thank you.


  • Thanks to the Module voltage DAQ-9178 and 9205, how to build a voltmeter of channel 16 with a range of 0 - 50Vdc?

    I have already built a 8-channel 10:1 voltage divider using 1% resistors.  My problem is there is a lot of AC noise on the signal of the DC and tensions do not match my Fluke DVM who is seated nearby.

    A little more info... Only channels 1 and 2 have signal going to them.  CH1, (a0), is connected to a battery of 9 volts and ch2, (a1), is a set of power-related variable bench for 17Vcc.

    The digital Voltmeter is rock steady, however, the LabVIEW indicators show which I suppose is a product of AC noise.

    Any help would be appreciated

    Thank you very much

    -Matt

  • How can I make graph waveform or file with two different values of DBL Dynamics excel?

    As described in the question, I have two sources dbl from a load cell and linear actuator (from remote). I want to do a curve of load/displacement of the readings of the strength of the load cell and the readings of travel of the linear actuator. Load cell generates an analog signal that can be acquired by data acquisition and the actuator is delivered with a Board and a program of VI to control speed and measure the movement of the actuator at a sampling frequency of my choice. Is it possible that I can do a VI where he continues to collect data and build the chart I'm looking for?

    I think I see where the confusion is.  Looks like your trip data do not come directly from a sensor (LVDT, etc.), but from the control software.  If this is the case, you're stuck sort with a timing of software, that will not sync at all.  Still not really sure what the entire Setup is - but if you do not have access to data of travel other than VI control that drives the actuator, you have limited options.  It depends on where these data comes from and how it is treated.  My initial comment assumed medium of moving a sensor in another Board (Non-OR).

    You can absolutely use a shift register data (or the node property history given in the table of waveform - as someone else suggested) to save the data in the file.  Use the entry in the File.vi worksheet.  There are examples that show how to do this.

    I would start by trying to start the process (movement and data acquisition) as close to simultaneously as possible, let them operate independently, but at the same time, then after you have some data you can see if they are synchornized well enough for your application.  If you put them both in the same loop with while avoiding (wait ms) you will get incoherently timed data of these two sets of data.  Better to use examples of hardware when clock you can.  If your test article moves very slowly, it may not matter how you do it.  If it does not quickly move, will be discussed as your data of force tip line upward with your data points in moving closer in time.

    Good luck!

    Kurt

  • How can I get Firefox to run and view the applets without asking my permission for each of them?

    Whenever I load a web page with a new applet, I wonder if I want to run it. I don't want to. I want just the applet to run. I read in the help section on the use of the java console, but I can't find how to display the java console either.

    Hello, lower the security level in the java settings in the system control panel: http://www.java.com/en/download/help/jcp_security.xml

  • change the voltage with a different deadline for both channels

    I have DC power which is having two output channels, each channel is capable of giving two different tension at a time. I want to change the voltage for channels with two differnet time. ex: voltage channel 1 will change each time 2mins and canal2 tension will change to each period of 5 minutes of time. so please give me the suggestion for this problem thanks in advance.

    Maybe like this...

  • My workscreen suddenly changed;  picture came from the bridge as a single image;  I have to go to view/ScreenMode/Full with the Menu bar, for each image!    Then when I opened three images, their names do not appear in the upper part.  How to restore?

    How to reset the workscreen in PS CS5 so it happens always full screen with tools, etc.  Mine suddenly started showing only the image on a small frame when I opened the bridge.  I have to slide the wide screen to work;  and then do not show the names of the images I opened.  I restarted.  I quit and reopen PS I did cause it.  How to return to the default I want?

    Has not re - install.  Seemed too complicated.  Fished around with the program and set up a workscreen substitute that works well.  Finally, I update and have it installed by a pro.  Thanks for your help.   Tom

  • How to do automatic pagination in 4 pages with 4 different gaps?

    I built a four-page document, but they are not bound together as a spread.  This unusual arrangement was born how I got the pages.  They came a file .tiff me via a characters (OCR) optical drive which gave to each page of text processed separately.  I then transferred each page a separate propagation on InDesign.  When I try to use the master page to set up the usual automatic pagination, it does not work.  Do I have to build a blank gap of four pages, copy and paste the simple spread to make it work?  Thanks for your help.

    Automatic page numbering is not dependent on the front pages, so it should work. You put a block of text on the master page and in this framework insert a special character of "Marker of Page" current, as well as any text that should accompany the number. The marker will be the letter assigned to the master page if the display on the master page.

    If it does not appear on your document pages, is there anything else that might be in front of it? The master page objects are always behind the live Webcam page on the same layer objects.

  • How to assign different images for each spry tab

    Hey everybody,

    I continued my experiences with the spry widget, but I was not able to understand the latter problem, that I ran. I want to do the upper tab have a different image than the other tabs whether it is open or not. someone knows how to do this?

    Hey everybody,

    I think that I thought about it. It was a simple enough solution. in the CSS file, add the following:

    . AccordionPanelTab " X "{}
    background-image: url ( link to image);
    }

    Replace ' X' with any name you want to give the tab.

    It worked for me. I hope it works for you!

  • How to choose different sounds for each contact

    It is possible to select the notification sound for each contact email name?

    You can set different sounds for ringtone and messages for each contact independently of the contacts application change a contact and then set the tone that you want under the header of message or ring.

    For email, you can set a single sound of the sounds settings section. It is not possible to set different sounds for notifications by e-mail.

Maybe you are looking for