LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

changing iteration count of a while/for loop

Hi,

By default the for/ while loop iteration count will start from '0'. I want my loop to start with any other value say '10'.

Is it possible to change the value of loop count , so that it counts from '10' (in this case).

0 Kudos
Message 1 of 3
(6,482 Views)

There is no built in way to customize the behavior of the iterator, but you can perform any math you wish to it in your program. In this case just add 10 before you use the iterator.

iterator.PNG

0 Kudos
Message 2 of 3
(6,477 Views)

Thnx a lot 🙂

Bt I already know this method. I was looking for some other method if available.

And we can also do the same using shift registers. 🙂

 

Regards,

Runjhun.

0 Kudos
Message 3 of 3
(6,472 Views)