To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Demonstrate the synchronizing two USB DAQ devices so that they were sampling on the same time scale.
Description
I recently needed to synchronize two USB DAQ devices so that they were sampling on the same time scale. Although NI has several great resources and examples for synchronizing PCI and PXI devices, for which the clock and trigger signals can be shared via internal signal routing, I could not find any specific examples showing how to synchronize two external DAQ devices. Building off the NI examples, I could create a program that routed the clock and trigger lines from one USB device out some PFI pins an into PFI pins on the second device. With the proper configuration calls, connection of several wires from one device to the other, and some juggling of time stamps, I could acquire data from both devices that is synchronized in hardware.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.