LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read data simultaneously from different cdaq modules?

Is there a way to synchronize input from separate cdaq modules?

 

I need to read a voltage on an NI-9219 analog input channel and a frequency on an NI-9211 channel.  As far as I can tell a single "task" can only read input from channels on one module. Is there a way to build a task that reads data from multiple modules?

 

Seems to me that buffered input is useless when multiple tasks are employed. With multiple tasks you get arrays of data that are sequential, not simultaneous. Is this correct? I'm thinking that the only way to get synchronized readings is to read each channel individually inside a loop. But this restricts the program to low speed data acquisition with  measurements that are spaced unevenly. Right?

 

I want to create a data file with three columns: time, voltage, frequency. What's the best way to get these readings at the same instant?

 

Referrence to a help document or tutorial would be great.

 

thanks! 
0 Kudos
Message 1 of 2
(3,172 Views)

Synchronizing measurements of different types using separate cDAQ modules can be done by making sure that the physical channels for each module IO control are selected (and separated by commas). Please review the following Developer Zone article illustrating how this can be accomplished. Cheers 🙂

 

1. NI-DAQmx: NI CompactDAQ Module Synchronization:  http://zone.ni.com/devzone/cda/epd/p/id/5259

 

Regards,

 

Ali M

Applications Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,142 Views)