NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Abort sequence and jump back to calling sequence

Solved!
Go to solution

How can abort the current sequence without cleanup and jump back to the main sequence?

 

I've a statement in the Setup section of my sequences. I've tried some expressions, but either the whole exection is cancelled (e.g. with RunState.Execution.Abort() or Terminate()) or it jumps to the CleanUp section. 

0 Kudos
Message 1 of 5
(1,270 Views)

Edit:

The unwanted workaround would be to create a label at the end of the sequence and jump to it. But that is time-consuming with many sequences. A programmatic solution would be better.

 

Somehow a simple return from the sequence back into the main sequence should be possible.

0 Kudos
Message 2 of 5
(1,230 Views)

Nobody an idea? Is there not possibility to implement a simple return without cleanup?

0 Kudos
Message 3 of 5
(1,207 Views)

.

0 Kudos
Message 4 of 5
(1,191 Views)
Solution
Accepted by topic author Struct

The steps in Cleanup run always despite sequence execution was terminated or not. However I remember a way of configuring it from station settings to skip cleanup upon abort. I'm curious why you want to have such option in subsequences? 

Message 5 of 5
(1,173 Views)