12-17-2019 06:11 AM
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 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).
12-17-2019 07:09 AM - edited 12-17-2019 07:09 AM
You just need the SequenceContext and then use the TestStand - Get Property Value.vi or the TestStand - Set Property Value.vi. Both are in the TestStand palette.
12-17-2019 07:42 AM
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:
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?
01-17-2022 05:03 AM
Hi,
to get the Station Globals values do you have to run the VI from Teststand?
I am not sure how to set up the Sequence Context in to allow me to access the Teststand Station Globals.
I have Teststand open and I have a labview VI open trying to get a value from the Teststand Globals but I just get an error.
01-17-2022 06:46 AM
Here are the station globals
01-17-2022 08:16 AM
SequenceContext is available only when the VI is called in TestStand.
01-20-2022 07:31 AM
Hi, thanks for your reply.
So I want to customise the basic Labview Operator Interface.
I need to add two combo boxes.
Then I need to pass the selected values into the station globals execution for two string variables called ProductClass and ProductType
The Operator Interface is Labview and I want to change the variables in Teststand.
It looks like TestStand is started prior to the main loop in the Operator Interface so it should be running.
I get an error when trying to write the variables.
02-07-2022 04:11 AM
So I managed to the get the Product_Class and Product_Type sorted out but I have another issue and hope someone can help.
Based on the values of the Product_Class and Product_Type I want to pass a path to the sequence file rather than selecting the sequence from the SequenceFile ComboBox that comes with the Labview user interface.
With the Activex Combobox that comes with the UI I don't see any way to pass a value to the Combobox programatically. It seems that you can only select the value from the dropdown Combobox.
I don't want the operator to select the sequence.
I want the operator to select the Product_Class and Product_Type and based on these values I want to specify the path to the sequence file to be used.
Does anyone know how I can do this?