From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,495 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,490 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,485 Views)