LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to synchronize the execution of two visa sessions located inside a while loop

Hi everybody,
 
I'm using 4 visa sessions inside a while loop to acquire 4 mesurements from 4 multimeters every x seconds , and perform some treatements (a division ) and i realised that the measures, are not synchronized, and neither are the treatements!
could you please help me with this problem
 
THANK you in advance,
 
0 Kudos
Message 1 of 2
(2,698 Views)

I assume you are using 4 different VISA sources to do this?

Using the error wires should assist in making sure the VISA functions at nearly the same time.  An error wire passing out of one function and simultaneously splitting to 4 VISA writes will set it up so that the VISA writes occur at pretty much the same time.  (I don't think you could guarantee perfect synchronization because of the Windows operating system.)  You could also look at using Rendezvous 's which pause separate lines of code until all of the lines have reached the Rendezvous point.

If this advise doesn't help, then I would recommend that you post whatever code you have now so it could be looked at.Smiley Wink

0 Kudos
Message 2 of 2
(2,668 Views)