Maintain an Updated Variable Between Teststand Runs

Updated Nov 4, 2019

Reported In

Software

  • TestStand

Issue Details

When I re-run a TestStand sequence file, the variables get initialized back to default instead of the value I wrote to it during my sequence run. How do you update a variable and maintain it so that the next run it still holds the value?

Solution

TestStand variables are only available during run time and do not hold the value between runs or at edit time. The only variable that holds the value you specify between runs is the Station Global. The Station Global is a variable that is written to a configuration file called StationGlobals.ini located in C:\ProgramData\National Instruments\TestStand 2017 (32-bit)\Cfg or C:\ProgramData\National Instruments\TestStand 2017 (64-bit)\Cfg (In case you are using a different version of TestStand make sure you edit the path).  The Station global scope is for all sequence files in the PC, so it can be edited from different sequence files.