11-17-2018 01:12 PM
During debug, you can prematurely hit the Terminate (stop) or Terminate All (abort) buttons.
If you hit the Terminate button, TestStand will execute the PostUUTcallback.
If you hit the Terminate All (abort) button, TestStand will neither execute PostUUT//ProcessCleanup callbacks
I would like to know how to detect if the Terminate All (abort) button is hit because I need to force some cleanup in the main sequence that is normally handled in the PostUUT callback.
Also, I notice if I hit the Terminate button and I have a breakpoint in the cleanup of the main sequence, the breakpoint is ignored. Is this a configuration problem?
Thanks
Kevin
11-19-2018 08:40 AM
If you're in a custom operator interface (not the sequence editor) you can look for the corresponding UI Messages:
http://www.ni.com/tutorial/4532/en/
There is a setting for the breakpoint behavior:
Station Options » Execution Tab » Honor Breakpoints while Terminating
Hope this helps,
Trent
11-20-2018 08:51 AM
This is good but I need a concrete example of how this is coded in the main sequence.
Also, there is an example "Determining the Termination Status of a TestStand Execution" at
I modified the example to explicitly display the termination status (see attached) but I could only get
ExecTermState_Terminating and ExecTermState_Normal states.
I couldn't generate a ExecTermState_Aborting state by clicking the Editor's Abort button (don't know how to create an abort state. All I got was a ExecTermState_Terminating state)