Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize two USB devices using an external clock but without a trigger?

Solved!
Go to solution

Hi,

Please refer to this Ni video https://www.youtube.com/watch?v=g_8jiKuKeDI

I think what is shown is pretty straight forward.

What is not clear is if I want to synchronize the M-series DAQ and the compaq or any other USB DAQ using an external clock (e.g.) a function generator how can I achieve it? Can I just route that function generator out as an external clock to both devices pfi0 input? And then do I really need a trigger? Because the clock is an external common signal why would I need a trigger? Is there a LabView or a Matlab example for this? A simple example is generate analog output on USB 6128 for example and feed it to a motor. The motor moves and we read back its position by connecting its position sensor to USB 6212 analog input. Then read out the analog input values from its buffer and compare with what is input to see if they are in phase or not i.e., if the two are synchronized? Possible?

0 Kudos
Message 1 of 3
(530 Views)
Solution
Accepted by topic author gujax23

You need to share both timebase and start trigger for synchronization.

The external clock is continuous and tells runners the pace to run. The start trigger is the starting pistol that tells all runners when to start. Without the start trigger, all tasks start at random times.

-------------------------------------------------------
Control Lead | Intelline Inc
Message 2 of 3
(516 Views)

Thanks. That did work for me i.e., adding a trigger

0 Kudos
Message 3 of 3
(468 Views)