03-14-2022 10:31 AM
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.
03-14-2022 02:50 PM
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
03-15-2022 03:35 AM
Hi Ravi,
thank you very much, I'll insert important VI's in the cleanup so they will be executed anyways