04-13-2011 06:20 AM
Hi!
I have a problem regarding data aquisition from multiple channels. I get data from one channel at the time, but when I try to make a similar code to get data from another channel, it will not work. This can be done with DAQ-assistant, but I want to avoid that solution, as it slows the program quite a bit.
The snapshot-attachment show how this is done for 1 channel. Can I use a similar programming solution for data aquisition from multiple channels?
Thanks for your help.
Solved! Go to Solution.
04-13-2011 06:22 AM
Here is the .VI as an attachment.
04-13-2011 07:11 AM
You just have to specify multiple channels in your task - i.e. Dev1\ai0:1 and change the DAQmx Read to N Channels. Go to the task in MAX and click on the Add channels button. Follow the directions.
06-08-2011 10:20 PM
Can you please tell me how I can use random multiple channels? For continuous channels, say 0 to 5, I type ai0:5 . What should I do if I want random channels, say 4,7,10,13?
06-08-2011 10:38 PM
Dev1\ai3, Dev1ai6, etc.
You don't have to enter this manually, you know. The DAQ Assistant tells you how select non-sequential channels from the list of all. The DAQmx physical channel control has the same capability when you click in the dropdown and select 'Browse' and then CTRL-Click.
08-09-2011 09:27 AM
Is there a way using the DAQmx functions to read from multiple channels, but have different sample modes (RSE, Differential, etc.) for each? This is very easy to do with the DAQ Assistant because you can individually select for each channel, but I can't seem to get this to work with the DAQmx functions, which I need becuase my loop times need to be minimal. Thanks in advance!