NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine if Terminated?

Is there a way to determine if the sequence was terminated?  I have a step that needs to be run in the event the sequence was terminated. It's in the cleanup portion already and isn't to run in all cases so I am looking for a precondition that examines if I'm in cleanup due to termination. Thanks.
-G-
-G-
0 Kudos
Message 1 of 4
(2,914 Views)
Hi,
 
The one way would be return an reference from your sequence exection and use this as the reference for the Execution.GetStates.
See attached example.
I launch a sequence in a new execution and pass the reference back into Locals.refObj. I use this in the action step in the cleanup to get the state of the sequence.
The value is used in the expression of the precondition of the Goto.
 
Hope it helps
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(2,905 Views)

Ray,

I'd like to look at your example but my TestStand is dated. I've got version 2.0.1.  I received a couple of errors trying to open your version 3 sample. Could you save it for version 2 or is that not an option? Thanks.

-G-

-G-
0 Kudos
Message 3 of 4
(2,904 Views)

Hi,

Ok, here is a 2.01 version.

I haven't tried it, just saved out as 2.0.1 version. It should work the same

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(2,897 Views)