NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically terminate execution (w/o PM) upon Exit or Logout

I have a sequence that is a background process (loop) that gets started as a new execution with no process model by the FrontEndCallbacks.seq. When I select File>>Exit or File>>Logout I get a dialog that asks me to terminate, abort or cancel.

What would be a good way to automatically terminate the background seq when I want to exit? I can live with the dialog in the Sequence Editor, it seems like it would be easier using some code in an OI.
0 Kudos
Message 1 of 2
(2,968 Views)
Hi,

There is an terminate method in the testStand API that can be called on the execution object. So in the Operator Interface, you just have to poll for the File > exit event and call this activeX method. There is another post that was answered by Ray. He has posted an example of this method being called from the sequence editor but it will definitely be a good start.

The post is located at http://forums.ni.com/ni/board/message?board.id=330&message.id=2868&requireLogin=False

Hope this helps.

Regards
SijinK
National Instruments
0 Kudos
Message 2 of 2
(2,943 Views)