ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand switch sequence

Hi everyone,

 

I realized a sequence in teststand with the PreStep callback, I wanted to know if it is possible to skip from this PreStep callback to the cleanup of the MainSequence in case of FAIL of the prestep.

What do I have to do?

 

I've tried to set a post execution in case of fail with an expression but I couldn't find the right expression to select the cleanup of the main sequence.

 

Thanks in advance.

0 Kudos
Message 1 of 3
(1,353 Views)

Hi,

 

In your pre step sequence  You can check if the step has failed.

If failed you can terminate the sequence.

It can be through post actions --> On Fail-- > Terminate execution.

Or thorugh a statement step -- engine.terminateall()

 

Terminate will ensure cleanup is run before closing.

 

Ravi

 

0 Kudos
Message 2 of 3
(1,335 Views)

Hi Ravi,

 

thank you very much, I'll insert important VI's in the cleanup so they will be executed anyways

 

 

0 Kudos
Message 3 of 3
(1,328 Views)