Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx: NI CompactDAQ Module Synchronization

Many applications require precise control of timing and the ability to synchronize multiple operations on multiple modules. National Instruments Compact DAQ data acquisition devices provide excellent tools for synchronization and are well suited for these applications. This example program will demonstrate how to perform multiple analog input module synchronization with CompactDAQ. By modifying the physical channel labels on the example program “Acq&Graph Voltage-Int Clk.vi”, we can create sophisticated cDAQ module synchronization programs.

Steps:
1. Create an analog input voltage channel.
2. Set the rate for the sample clock. Additionally, define the sample mode to be finite and set the number of samples to be acquired per channel.
3. Call the Start VI to start the acquisition.
4. Use the Read VI to measure multiple samples from N Channels on the device. Set a timeout so an error is returned if the samples are not returned in the specified time limit
5. Call the Clear Task VI to clear the Task.
6. Use the popup dialog box to display an error if any.

Note: Make sure that the physical channels for each module IO control are separated by commas. For example, to synchronize cDAQ2Mod1/ai0 and cDAQ2Mod2/ai0, type in: "cDAQ2Mod1/ai0,cDAQ2Mod2/ai0" into the physical channel IO control.

Chris Van Horn
Applications Engineer
Comments
Philmod
Member
Member
on

And so what about synchronizing channels of voltage and acceleration?

Thank you.

tajim
Member
Member
on

Hi!

Where is the program!

No attachment!!

I hope to have it attached with this document!

Regards!

Tajim

Chris_VH
Active Participant
Active Participant
on

Open the example program found in Help>>Find Examples called "Acq&Graph Voltage-Int Clk.vi" and then follow the steps above.

Chris Van Horn
Applications Engineer
tajim
Member
Member
on

Thank you very much Chris!!

Have a nice weekend!

Regards!

Tajim

Contributors