From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(896 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
(878 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
(871 Views)