LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make a for-loop loop increasingly?

I want a for-loop within another for-loop to loop x, x+1, x+2, x+3...etc. times within this other loop. Does anyone know how I can do this? Thanks
0 Kudos
Message 1 of 4
(2,770 Views)
Is something like this what you're trying do?
0 Kudos
Message 2 of 4
(2,770 Views)
Hi,
you just need to add "X" to iteration number of outer loop "I" and wire the result to the number of iterations of the inner loop "N".

Look on the diagram of attached example.

Good luck.

Oleg Chutko.
0 Kudos
Message 3 of 4
(2,770 Views)
Wire up the "N" terminal of the inner loop to "i" + X.
In other words, inside the outer loop, add the "i" terminal to your constant X, and use that as "N" of the inner loop.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 4
(2,770 Views)