Showing results for 
Search instead for 
Did you mean: 

Accessing TestStand StationGlobal within LabVIEW

For a current project I am attempting to access and set an existing StationGlobal "SimulationMode" of type Boolean in TestStand from within a LabVIEW VI, using the following code depicted below:


StationGlobal accessStationGlobal access


A fair number of examples depict this being done in the same manner, yet somehow I am not able to access this particular StationGlobal "SimulationMode". Even just trying to get the Boolean value (without the prior set Boolean) does not yield me the value of the StationGlobal Boolean. I am certain that I have correctly applied the Application Manager to link to the TestStand application, as per the following paragraph.


In a separate VI I was able to find that LabVIEW can determine that this StationGlobal exists: by using PropertyObject with the 'Exists' method I am able to obtain the accurate Boolean condition for whether the specified StationGlobal exists or not. It returns a true on "SimulationMode" as string input, whilst any other input (such as "SimMode") returns a false.


How would I be able to access and set the value of this StationGlobal of type Boolean in Teststand from within a LabVIEW VI? I am using LabVIEW 2017 SP1 and TestStand 2017 (TestStand 2017 API Ver 1.0).

0 Kudos
Message 1 of 3

You just need the SequenceContext and then use the TestStand - Get Property or the TestStand - Set Property  Both are in the TestStand palette.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3

Wow, thanks! I am now able to get the accurate value from the TestStand StationGlobal using the TestStand - Get Property Value VI . However, when I attempt to write to it using the Set Property Value VI it will not change the value in TestStand for this StationGlobal. I am using the following program:

new program.png

 Also, per the Sequence Context In this will only function if I call the Labview from the sequence, correct? Can the LabVIEW VI not modify StationGlobals by its own, just running as standalone?


0 Kudos
Message 3 of 3