From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring two instruments in one vi

I have two instruments that I want to controll (with LabVIEW) and monitor their output. What is the best programmatic way to do this? Use two parallel while loops?
0 Kudos
Message 1 of 3
(2,369 Views)
Hi,

If you are using Visa have a look at locking.vi in the Hardware Input and Output | Visa folder of the examples supplied with labview.

I have used this to avoid tying to address two instruments at the same time when you only have one gpib card.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,369 Views)
Ray is correct for using parallel loops while accessing VISA. If you do not need to process in parallel, then you might consider using flow control to access each instrument in turn. This gives a more easily predictable acquisition rate. With parallel loops, one loop may cycle faster than the other (this may not be a problem - depends on what you're looking for).

This is not a "one simple answer" type of question.

Rob
0 Kudos
Message 3 of 3
(2,369 Views)