LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strategy for synchronizing tests [LV8] {WinXP]

I have two separate built applications now that need to be synchronized, i.e. - when one starts taking data the other should start as well. One test is getting data from a serial device and a DAQ board. The other test is getting data from a camera. I'm trying to decide if it's best to integrate them both in one application or have them synchronized somehow (via shared variables). There are times when both tests could still be used separately. If anyone wishes to wax philosophical about the pros and cons I'm all ears (or eyes I suppose).
 
George
0 Kudos
Message 1 of 2
(2,609 Views)
Hi, George.

I'd combine the two VIs when you want the tasks synchronized and use the VIs separately when you want them to operate independently. (So ultimately you'd have three VI's: the combined one and the two singles.) If you were using a LabVIEW Real-Time system, it would be possible to communicate between the two with buffers and/or shared variable events, but that's a little like shooting a mosquito with a cannonball. Since your application sounds relatively simple, I'd just use regular DAQ triggering with the combined VI. Hope this answers your question!
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 2
(2,588 Views)