LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple channels NI-DAQ

Solved!
Go to solution

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.

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 1 of 6
(7,168 Views)

Here is the .VI as an attachment.

 

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 2 of 6
(7,166 Views)
Solution
Accepted by topic author automasjon3ea

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.

Message 3 of 6
(7,158 Views)

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?

Dheeraj Bharadwaj
IIT-Madras
0 Kudos
Message 4 of 6
(7,081 Views)

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.

Message 5 of 6
(7,074 Views)

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!

0 Kudos
Message 6 of 6
(6,985 Views)