When TestStand Error Occurs, Skip to Cleanup with no UI Popup

Updated Apr 19, 2023

Reported In

Software

  • TestStand

Issue Details

I have a TestStand sequence where I will occasionally get expected errors when communication drops between devices. When these errors occur, I would like the sequence to go to the cleanup steps immediately, and I would not like the error popup to occur.

Solution

There are 2 things which need to be changed for this behavior.
  • In Configure>>Station Options>>Execution Tab there is a section for "On Run-Time Error" which can be set to Run Cleanup.
  • Edit the PostUUT callback. This callback is responsible for the popup that occurs upon step failure, and so if you set the Run-mode of the step to Skip, there will not be any pop up UI windows that appear.

Additional Information

Using Callbacks in NI TestStand  can be a good resource if you have never used callbacks before, and why you would want to use them.