NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Abort execution of VI from TestSTand

I am trying to find an easy way to abort or terminate a called VI from TestStand. I am working on a system that controls machines and if something goes wrong I want a stop button that stops the VI immediately and runs a VI thats sends a stop signal to the machine.

 

Event seems like it could work and I tried using GetTerminationStatus but I cant get it to trigger an event. I have only tried using ValueChange on both GetTerminationStatus and Sequence Context In.

 

Is there a way to get a message popup to pop up and having VI:s running in the background? When the VI:s are done the message closes. If I push the button I want it to set a variable that triggers an event.

0 Kudos
Message 1 of 3
(4,313 Views)

Hi Peter,

 

Here's a quick example of how to use the GetTerminationStatus VI.

Unfortunatlly you can't generate an event in LabVIEW directly you will have to poll the TerminationStatus.

 

This will detect someone pressing the Terminate button in the SequenceEditor or TestStand User Interface.

 

I've also setup the Terminate Button in the VI to trigger a Termination in TestStand.

 

Somethings to keep in mind.

The difference between Abort and Terminate, is that Terminate will still run the Cleanup Group of any sequences.

This is very useful to ensure everything shuts down correctly when something goes wrong.

 

Hope this helps

Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer

measX GmbH & Co. KG.
http://www.measx.com
Message 2 of 3
(4,310 Views)
Thanks! Seems like it should do the trick.
0 Kudos
Message 3 of 3
(4,302 Views)