LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify multiple channels to AI One Scan

Why does the attached VI fail when I specify the 4 channels. I have also attached my config file from MAX. It allows me to specify the 4 channels but when I do I get no values returned. If I specify only one channel then I do get that channels value.
Any other comments on this VI are welcomed.
Download All
0 Kudos
Message 1 of 6
(2,953 Views)
Did you try your VI with device number wired to the AI Sample channel function? The device number is currently not included in your VI. You can get the device number from MAX.
0 Kudos
Message 2 of 6
(2,953 Views)
Yes I have tried with the device number specified. The attached file is an earlier revision. Other than the device number the newest version is the same.

Again, I can specify any single channel (i.e TX-1 or TX-3) and receive the expected data value. However, when I try to specify more than one channel separating them with a comma as required I get NO data returned.
0 Kudos
Message 3 of 6
(2,953 Views)
I ran your vi on my system with SCXI-1102/1200/1001, it works as it is even without device number though the result is a different thing to talk about. I'll suggest you build 1-D array of DAQ channel name and use it with AI Config, AI start, AI Read, and AI Clear (use Acquire&Process N Scans.vi example under LabVIEW help as a reference). Also use the MAX's "Analog input configuration" to set the max/min. instead of specifying it in your vi. I'll send you a sample vi if the file attachment system permits, it does seem to be responding right now.
0 Kudos
Message 5 of 6
(2,953 Views)
Try out the attached vi
0 Kudos
Message 6 of 6
(2,953 Views)
Rick;

There are some inconsistencies at your VI. You are setting the Input Limits of the channels to be values that are completely out of the range your DAQ board can handle.
Those limits are to be set within -10V to 10V only, and you are setting those taking the physical values instead of the voltage value.

Also, you are using the mean.VI to take the average value of a single point, which doesn't make sense. To use the mean VI, you need to have more than one point per channel. You can try the AI Acquire Waveforms.VI instead, to acquire more than one point per channel.

Hope this helps.
Filipe
0 Kudos
Message 4 of 6
(2,953 Views)