ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
This example demonstrates how you can use the TestStand API to create new variables in your sequence file which persist at edit-time.
You can create variables in a sequence using the Runstate.Sequence object in the TestStand API. However, since this sequence object refers to the running copy of the sequence, and changes or new properties are only persisted for the active execution.
To access the edit-copy of the sequence file, you must access the sequence from the sequence file object in one of two ways:
Once you have obtained the sequence file object, complete these steps to make a modification:
Add Persistant Variable to Sequence File - TS2012.seq
TestStand 2012 or compatible
Add Persistant Variable to Sequence File - TS2019.zip (seq)
TestStand 2019 or compatible
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.