This method allows you to control when acquisition begins across multiple modules. Because the focus is to simply align the start time across multiple tasks, this method is the most rudimentary way to achieve synchronisation.
A sample clock can be shared between both tasks, so that any task that uses the shared clock can take samples at the same time. Therefore, the two tasks will not drift from each other.
NI-DAQmx allows multiple Analogue Input channels from various modules to be placed in the same task. Channels from different modules should be included in the same DAQmx Create Channel if they are intended to have the same measurement configuration (voltage range, and units) and the same timing and triggering information.
When referencing multiple modules in one task, the same sampling rate will apply to all channels. However, some applications may require synchronisation at different rates, this technique will allow us to do so.For an extensive list of different techniques available and example code, please refer to our synchronising tutorial here.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.