NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional looping. How to refer to the previous result s of looping?

Solved!
Go to solution

Hi,

 

I'd like to repeat a sequence for second time only if the sequence failed first time. To do that I'd like to use the Looping feature from step properties. Question: how should I build the Loop Status Expression refering to the Step Staus (Pass/Failed) of first loop?

0 Kudos
Message 1 of 3
(3,057 Views)
Solution
Accepted by topic author MimiKLM

In the Looping properties in Loop Type select Pass/Fail count.  Then set the Stop after to 1 and iterations to pass.  You can set the maximum number of iterations to whatever value you desire (in your case it sounds like 2).  You can play with the numbers to fit your scenario.  As you play with the numbers you'll see the expressions values changing.

 

I could give you a better answer if I understood exactly what you wanted but this will probably do what you want.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(3,049 Views)

Ughh... I haven't checked this option. Thanks a lot jiggawax

0 Kudos
Message 3 of 3
(3,043 Views)