LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to jump into a certain i (iteration round) in a For-loop if a certain rule is met?

Solved!
Go to solution

The question is in the topic.

 

Help is appreciated.

 

 

0 Kudos
Message 1 of 4
(2,471 Views)
Solution
Accepted by topic author Aleksi-

Nope.

 

 

Spoiler

You cannot influence the iteration count. It just counts up, starting from zero.

You may add an offset to "i" to "fake" a certain count value…

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,457 Views)

...or use a while loop and maintain a loop count yourself using an incrementing shift register.

 

You can have a case structure in your loop that modifies this count under the required conditions.

Message 4 of 4
(2,424 Views)