02-13-2008 12:00 PM
02-14-2008 11:01 AM
Hi Manasa,
If I understand what you are trying to do, it is relatively straightforward to configure your application to acquire data on two channels.
I was unable to run your vi as it was missing some of the subVI’s from your application. However, your attachment was sufficient to see what you are trying to do.
Here is how to add channels:
1. In the I/O Channel Constant, you can add additional channels by using a comma or a semi-colon. For example, to scan the first four channels you would put 0:3 in the constant (see attached screenshot ChannelConfig.jpg). To scan the first and third channel you would put 0,2.
2. The AI Single Scan VI will now read from multiple channels. Often it easiest to configure the output of this VI for viewing by first putting the data into an array using the Build Array VI. It can then be plotted in a waveform graph. (see attached screenshot ReadtoGraph.jpg and WaveFormGraph.jpg)
Just a few notes about “simultaneous” sampling:
Most of the NI data acquisition cards have a multiplexer between the various input channels and the Analog to Digital (A/D) converter creating a very small delay between each channel (usually ms range or smaller). NI does make several data acquisition cards that can perform true simultaneous sampling, meaning that there is an A/D converter for each channel.
For the large majority of applications, the small delay between channels is negligible.
02-14-2008 11:04 AM