03-03-2011 08:04 AM
Hi,
I am using the NI PCI-6251 device to measure in labVIEW, analog input voltage from one channel in the device and writing the data to a text file. The "Acquire Data and
Write File" is as attached.
Now, I need to measure analog voltage from two physical channels simultaneously. However, I am not able to use the program that I used for the previous measurements. I am very new at this, could someone please help me with the program to acquire the voltage from two channels and write it to the text file?
Your help would be greatly appreciated!
Thanks a lot,
PT
03-03-2011 10:48 AM
PT,
You can modify your exisitng code by selecting the polymorphic instance of the Daqmx Read function to be N Channels N samples (or N Channels 1 Sample) depending on what you desire. You will need to also add the additonal channel to the "physical channel" input to the "Creat Virtual Channel" function (For example Dev0\AI0:1), See the Help for these functions for more details.
Also search for an example named "Acq&Graph Voltage-Int Clk.vi, which will have an example of what you a re looking for w/o the data write to file.
Hope this helps
Dan