Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding multiple channels to a task

Solved!
Go to solution

Hi,

 

I have several thermocouple input modules in a Compact DAQ chassis and I would like to read all channels on EVERY module within the same task. All of the examples I have seen using DAQmxCreateAIVoltageChan() show the syntax to add all channels on a single module (e.g. "ai0:7") Is it possible to add channels from more than one module to a task in a single line or will I need to call DAQmxCreateAIVoltageChan() once for every module?

 

Thanks.

 

0 Kudos
Message 1 of 3
(3,730 Views)
Solution
Accepted by topic author Tony_Dean

Yes it is possible, this is called Channel Expansion and the DAQmx driver will automatically even share a clock and trigger source so that they are synchronised:

 

http://digital.ni.com/public.nsf/allkb/B7E7C6A92467E5438625792E0067ED80

 

Message 2 of 3
(3,616 Views)

Awesome, thanks! This is just what I needed to know.

0 Kudos
Message 3 of 3
(3,608 Views)