NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

In subsequence, a stepfailure aborts the subsequence.

Solved!
Go to solution

In my MainSequence, I call a subsequence. 

Inside that subsequence there are a lot of tests/logic implemented, but when a step fails, the subseq is aborted directly and send me back to MainSequence. I do not want that behaviour, I would like that the subsequence performs until the end of it...is this possible?

A solution is of course to perform the steps in MainSequence, instead of calling a subsequence...but I´d rather see a solution that where I can use subsequences that not aborts when stepfailure occurs...

0 Kudos
Message 1 of 13
(5,009 Views)

You can try this,

Go to...

Configure->Station Options->Execution (look for On runtime error)..choose show dialog..by default it may be set to abort

 

0 Kudos
Message 2 of 13
(4,995 Views)

It was set correctly...

 

0 Kudos
Message 3 of 13
(4,991 Views)

I might explain better.

 

MainSeq calls SubSeq.

Inside SubSeq a MultipleNumericTest fails which lead to exit from SubSeq back to MainSeq.

 

I do not want this to happen, I want to execute all steps in my SubSeq even though a MultipleNumericTest fails...

0 Kudos
Message 4 of 13
(4,986 Views)

Ok.

Click on the step->Step settings pane->post actions->on step failure->select(Go to next step)

0 Kudos
Message 5 of 13
(4,977 Views)

Already done...this is what I want to happen.

When step is failing, Goto next step is chosen, but it will not happen, since it throws back to MainSeq instead...

Really strange behaviour. I do not understand why SubSeq is aborted back to MainSeq instead of follow the settings in Post Action....

0 Kudos
Message 6 of 13
(4,965 Views)

Check with this example ......if not check your conditions

0 Kudos
Message 7 of 13
(4,962 Views)

That sample was working properly, no issues at all.

 

I attach my Sequence, which according to me is OK.

The faulty behaviour starts in the calling of subseq 'Internal Supply Tests'

Inside this seq, Check Faultcodes failing, and instead of follow the setup in Post-Action, it will be aborted back to MainSeq...

 

Is there any global setting in TestStand that could cause this behaviour?

0 Kudos
Message 8 of 13
(4,947 Views)
Solution
Accepted by topic author Mikael_Azelio

I re-created the sub-sequence, and the error is gone!

0 Kudos
Message 9 of 13
(4,929 Views)

Mikael_Azelio, did you ever find the source of the problem?

0 Kudos
Message 10 of 13
(3,452 Views)