Set Safe Checkpoints in TestStand
- Updated2024-10-31
- 3 minute(s) read
TestStand steps provide the ability for the test sequence to save, retrieve, and clear state data from the real-time OS of the cRIO-9047 with the Save/Retrieve/Clear State Data step, described in detail in Save/Retrieve/Clear State Data Step.
Use this sequence step to ensure that the host computer running TestStand can safely stop at and resume from a safe checkpoint if it encounters an IT interruption during a long-duration test.
Using this step, you can store data objects—for example, TestStand variable numbers, containers, etc.—on the real-time target by name and retrieve them at a later point in time.
Retrieve State
Use this step to retrieve safe checkpoints or other states from the real-time target.
- Place a Save/Retrieve/Clear State Data step in your sequence.
- Configure the following:
- Behavior—Retrieve State
- Lookup Name—NI recommends that you define this name as a TestStand variable to limit erroneous string entries
- Data Object—Select an object to recall; use a TestStand variable, such as a number, Boolean, or custom container
- Already Existed—(Optional) Configure how to store previously saved objects; use a TestStand Boolean variable
Save State
Use this step to store safe checkpoints or other states on the real-time target.
- Place a Save/Retrieve/Clear State Data step in your sequence.
- Configure the following:
- Behavior—Save State
- Lookup Name—NI recommends that you define this name as a TestStand variable to limit erroneous string entries
- Data Object—Select an object to save; use a TestStand variable, such as a number, Boolean, or custom container, for example, the cycle count that you are currently on
- Already Existed—(Optional) Configure how to store previously saved objects; use a TestStand Boolean variable
Clear State
Use this step to clear safe checkpoints or other states from the real-time target.
- Place a Save/Retrieve/Clear State Data step in your sequence.
- Configure the following:
- Behavior—Clear State
- Lookup Name—NI recommends that you define this name as a TestStand variable to limit erroneous string entries
- Data Object—Select an object to save; use a TestStand variable, such as a number, Boolean, or custom container, for example, the cycle count that you are currently on
- Already Existed—(Optional) Configure how to store previously saved objects; use a TestStand Boolean variable
Clear All States
Use this step to clear all safe checkpoints or other states from the real-time target.
- Place a Save/Retrieve/Clear State Data step in your sequence.
- Set Behavior to Clear All States.
Stop and Resume Tests at a Safe Checkpoint
Use these steps in conjunction with the native Flow Control steps in TestStand to build sequences that ensure the test stops at or after a safe checkpoint.
The following figure displays two example sequences. Use the sequence on the left to ensure the DUT is not tested when it is in a safe state. The final Save State records the safe state condition and reads the condition back when the sequence resumes. Alternatively, program your test sequence to recover the DUT back to a safe condition and use the proposed example sequence as shown on the right in the following figure.
Related Information
- Save/Retrieve/Clear State Data Step
Use this step to save, retrieve, or clear state information to or from VeriStand in situations when VeriStand is running on a separate machine from TestStand.