Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using daq

Using DAQMX can you select ( hardcode) only channels you want to select ?
I have a 6225 with 12 DAQ Cards.  When I run self test DAQ1 uses Ch's 1-24 and 26-79.  DAQ2 uses Ch's 1,3 5, 7 60-79.  I want to use the same vi just wire in different channels to read when the card is selected.
In the resulting array are the elements in the order the channels were read ?  ie element 0 is ch 1 ( in the above example) element 1 is ch2 etc .  Since you're not reading ch 25 ch 26 reading will end up in element 25 ?
0 Kudos
Message 1 of 7
(3,591 Views)

In the resulting array are the elements in the order the channels were read ?  ie element 0 is ch 1 ( in the above example) element 1 is ch2 etc .  Since you're not reading ch 25 ch 26 reading will end up in element 25 ?
Yes, your understanding is correct

Using DAQMX can you select ( hardcode) only channels you want to select ?
A slightly confusing statement!Smiley Wink can you be a bit clearer??
 
0 Kudos
Message 2 of 7
(3,581 Views)
If I open a blank vi, go to:
Functions>NI Measure>DAQMX DATA AQ and create DAQXMxREAD.vi on the block diagram.  I can create a constant on the task/channel in wire of the DAQMXRead.vi.  I have a 6225 card installed.  That i/o constant I just created has either  ( just as an example) "PXISlot2ai0:ai72" or I can select an individual channel  "PXISlot2ai0" or "PXISlot2ai1" or "PXISlot2ai0"   What if I want to skip channel 16  and also channels 24-26 ?  How do you create that array of channels to do that? 
Thanks !
0 Kudos
Message 3 of 7
(3,578 Views)
Just seperate each physical channel name by a comma as shown in the attached sample vi
0 Kudos
Message 4 of 7
(3,576 Views)
I have LV 7.1
0 Kudos
Message 5 of 7
(3,572 Views)
When you create a channel constant, you have the 'browse' option. Select this. Then, hold down the Ctrl key and select non-consectutive channels. This is the easiest way to select channels and then you will see the syntax for yourself if you ever want to enter them manually. As mentioned, it is just a channel name separated by commas i.e. Dev1/ai0, Dev1/ai2, Dev1/ai4.
0 Kudos
Message 6 of 7
(3,569 Views)
Thank-you.
0 Kudos
Message 7 of 7
(3,565 Views)