Station Global Variables
- Updated2024-11-26
- 2 minute(s) read
Station Global Variables
Station global variables are variables specific to a computer that you can access from all steps and sequences on that computer. Any changes you make to the value of a station global variable are reflected in all other steps and sequences.
Use the Station Globals window of the TestStand Sequence Editor to create station global variables. Creating a station global variable is similar to creating a variable of any other scope. You can access and use station global variables similarly to variables of other scopes, such as local variables.
While running, TestStand stores the station global variables in the StationGlobals property object.
TestStand saves the station global variables in the StationGlobals.ini file in the <TestStand Application Data>\Cfg directory automatically when you close the TestStand Engine. You can also save the station global variables from the Station Globals window or by calling the Engine.CommitGlobalsToDisk method.
The TestStand Deployment Utility does not automatically deploy the station global variables. You can include the StationGlobals.ini file in the deployment image, but doing so might remove any station global variables that exist on the target computer to which you deploy the image.