LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining Multiple Non-Sequential AI Channels

This is probably really basic so I apologise now!!! I am running 2 x 6071E and would like to record 90 out of the 128 AI. I have designated all AI signals with names in MAX and I am using 2 x 'AI ONE PT' to record these and would like to know the syntax to be able to not only include a group of AI Channels but also AI channels that are not next to each other (i.e. AI0:AI1 , AI45:49 , AI56). What is the syntaxt for this. Help!!!!!!!!!!!
0 Kudos
Message 1 of 3
(2,678 Views)
Nice,
Unless I 'm really missing what you're trying to do, you just need to specify those channels in your current list. For example: to add AI15, AI20 and AI25 to your scan you would use this list...

AI0:AI1, AI15, AI20, AI25, AI45:AI49, AI56

Hope you find it helpful. If you need more info, let me know.
Scott Menjoulet
0 Kudos
Message 2 of 3
(2,678 Views)
Greetings,

One other comment...The code you included has "AI12-AI15" in the DAQ Channel Name constant. The dash is not valid for a span of channels, not even with channel numbers.

Other than that, you should be able to put your virtual channels in any scan order that you desire.

Good luck with your application.

Spencer S.
0 Kudos
Message 3 of 3
(2,678 Views)