NI TestStand

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
1,266 次查看

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 项奖励
2 条消息(共 3 条)
1,248 次查看

Hi Ravi,

 

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

 

 

0 项奖励
3 条消息(共 3 条)
1,241 次查看