Showing results for 
Search instead for 
Did you mean: 

How to Choose Channel from Task

Hello All,


I asked a question similar to this on another thread, but am having some issues now.


I have 3 voltage inputs to my USB-6008 and I need to be able to measure all of them at the same time. I have each individually set up in seperate VI's but the DAQ can't run the seperate VI's at the same time, so I need to merge them to 1. So I created a task with all three channels in it and when it runs I can see the signals, but how do you parcel out each signal to work with?



0 Kudos
Message 1 of 4

You neglected to mention if you were aquiring the signals as waveform or double arrays. But either way is shown below. (I believe the arrays import as columns but they may be rows. You will have to verify, or someone else may chime in.)



Edit to add: the item that is used to split the waveform is called "Split Signals" so you can find it on the pallets.

0 Kudos
Message 2 of 4

AH, thanks a lot I'll check it out

0 Kudos
Message 3 of 4

The task is used internally by DAQmx.


When you pull down the input dropdown, its default is the individual inputs.  Pick the first one (ex: AI0) and type in a colon followed by the last number.  (":3" for AI3).  So your input looks like "DevX/AI0:3".  When you create a task that way, the task contains references to all the channels.  When you do the read (or write), you have to use the "multiple channels" polymorph, that'll turn the output (or input) into an array.


From there, just index the array and pull the individual channel data out.  See attached example.



Download All
0 Kudos
Message 4 of 4