03-23-2010 07:33 AM
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!
03-24-2010 01:35 PM
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