05-19-2014 02:46 AM
Hello,
I have one simple question. For my project I am working with a high speed camera and a spinning unit consisting of a motor. I have two seperate VIs for controlling the camera and the spinning unit. I control the spinning unit with the help of a control board using VISA read and write.Camera is controlled by vision developement functions. Now i want to combine these two VIs into one and synchronize their working. Controlled board is pre-programmed such a way that when we write command "11" to it , the spinning unit starts its motor and sends an external trigger signal to the camera to start working. Now I just want to do this in one single VI (both starting of spinning unit and camera accqusition). I am attaching both the VIs for the reference.
Regards.
05-20-2014 04:40 AM
Hi,
If I understand correctly the camera vi is waiting for a signal of the motor vi. You could use queues for that (like a producer-consumer). If you add a timeout to the "Dequeue"and "Enqueue"-functions you can execute the Vi even if there is no new element in the queue.
Hope that solves your problem.
Anna
05-20-2014 04:41 AM
http://www.ni.com/white-paper/3023/en/
05-20-2014 05:14 AM
Thanks I´ll give it a try.