06-24-2015 09:17 AM
In LabVIEW we have the Termination Monitor VI's we can use to watch for the sequence being terminated.
I've been poking through the properties and methods to see if there's a similar way to monitor for a "Break" command in the sequence and so far can't seem to find one.
Does one exist or do I need to just create my own?
Solved! Go to Solution.
06-24-2015 10:06 AM
Are you talking about when someone aborts a LabVIEW VI?
The engine already handles all terminations submitted through the UI or Sequence Editor.
06-24-2015 10:49 AM
No, trying to detect when someone hits the "Break" button (looks like a Pause button) in TestStand.
Reason is there will be some asynchronous VI's running during the sequence and the operator will sometimes need to Pause the sequence and I need to be able to properly handle the Pause in the background processes.
06-24-2015 10:59 AM
Execution.GetStates
You should be able to get that from the sequence context.
The ExecutionRunStates enum will provide you with the correct information.
Unfortunately there isn't a VI for this already.
06-24-2015 01:26 PM
Thanks. That's what I was looking for. I figured it had to be there somewhere, just couldn't find the correct one.
06-24-2015 02:21 PM
Glad to know that's what you were looking for.
In addition the UI Message: 1 BreakOnUserRequest gets sent whenever a break occurs. This is useful if you need to detect when the user triggered a break. You can create an event off of it.
Good luck,
06-24-2015 04:52 PM