08-05-2009 02:19 AM
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.
08-05-2009 05:32 AM
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
08-05-2009 06:50 AM