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.
And so what about synchronizing channels of voltage and acceleration?
Thank you.
Hi!
Where is the program!
No attachment!!
I hope to have it attached with this document!
Regards!
Tajim
Open the example program found in Help>>Find Examples called "Acq&Graph Voltage-Int Clk.vi" and then follow the steps above.
Thank you very much Chris!!
Have a nice weekend!
Regards!
Tajim