ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Resource Locks Between TestStand and LabView

I have a TestStand sequence, using the sequential model and need to share a single measurement resource between the executing TestStand sequence and another LabView operator interface application that is running concurrently. I need to be able to Lock/Unlock the single resource in both environments. I can’t find a way in LabView to read/control the Lock Object Reference that is passed down from TestStand. Any LabView example code links would be appreciated.

0 Kudos
Message 1 of 2
(2,603 Views)
I'm assuming that these are not two different TestStand sequences. If they're not, it might be a lot simpler to use VISA locks. There's a shipping example called Locking that shows the lock/unlock process in a single VI but you can easily do the same thing in two separate VIs running in two separate processes. The lock will operate on a specific VISA resource by name and you won't have to worry about getting the ActiveX reference to the TestStand lock.
0 Kudos
Message 2 of 2
(2,599 Views)