NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Looping in TestSequence

Good day,
I have a computer that fails a test intermittently, but if immediately after the part fails, I test it on another computer it passes without any problem.
Pins and wiring have already been discarded.
My question is how can I create a loop for that test in the sequence?
I had used this custom loop:

 

Loop Initialization Expression: RunState.LoopIndex = 1
Loop Increment Expression: RunState.LoopIndex += 1
Loop While Expression: (RunState.LoopIndex==0) || (RunState.LoopIndex > RunState.LoopNumPassed ) && (RunState.LoopIndex< 4)
Loop Status Expression: RunState.LoopNumFailed< 2 ? "Passed" : "Failed"

It passed the test, but it didn't generate any errors even after removing the pin, I don't know what I did wrong.

 

I hope you can help me. Greetings

0 Kudos
Message 1 of 6
(598 Views)

Hi,

If you go to the properties of each step it has a looping feature. ( You can also add logic to the looping i.e. try n times)

 

 

Ravi

0 Kudos
Message 2 of 6
(480 Views)

Did you find something?

0 Kudos
Message 3 of 6
(460 Views)
0 Kudos
Message 4 of 6
(450 Views)

5:20

https://youtu.be/pLvO0xo-vNU?si=KPfNNEkBDVLftwVR

 

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 5 of 6
(441 Views)

I still can't find the solution

0 Kudos
Message 6 of 6
(402 Views)