LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize two devices to start different tasks at the same time?

Hi all,

 

I am currently using a Zaber linear stage for towing models and a NI USB-6289 DAQ board to acquire data from sensors mounted on the model. I use a simple VI with a DAQ assistantto acquire data from the USB-6289. I installed an external LabView driver provided by Zaber and I am using one of their example VIs to send a series of commands to the linar stage to perform motions. These are two separate VIs at the moment. I have attached snapshots of the VIs. 

 

I want to synchronize the start of the motion with the starting time of data acquisition from the DAQ board so that I can co-ordinate the signals at each timestamp with the position of the model at that time. The data acquisition from the DAQ board starts when I run the "DAQ.vi". For the linear stage, I input the parameters in the front panel and motion starts as soon as the requests are sent to the device. I have highlighted this part in the block diagram.

 

What is the best way I can synzhronize these two separate tasks in different VIs? Should I integrate the two VIs and then try do this? I am pretty new to LabView so it would be great if any of you can help me with this.

 

Thanks a lot!

Download All
0 Kudos
Message 1 of 4
(3,277 Views)

I am attaching the vi files as well. I believe the Zaber vi will only work when the driver is installed. I am attaching the driver here as well. It can also be found in the Help menu >> Find Instrument Drivers >> Search for the keyword Zaber. 

 

Thanks!

0 Kudos
Message 2 of 4
(3,263 Views)

You can use many structures from the "synchronization" pallete menu. I used the notifiers in the example. Keep in mind that notifiers do not queue up, once the wait on notification function misses the notification, it wont know it happened.

 

notific.png

 

 

0 Kudos
Message 3 of 4
(3,262 Views)

Dear s.vignesh,

 

I am also controlling a linear stage and a DAQ with loadcell values continously, Here is my block diagram maybe this will helpful. It is not finished yet. I have been busy with this since 2 mounths. Trying to learn Labview by the time. They can be in the same vi. Putting them at the same while loop may be the solution to  synchronize.

 

Kind regards.

0 Kudos
Message 4 of 4
(3,260 Views)