NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
RJ_15
Posts: 55
0 Kudos

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).

Member
ESearl
Posts: 67
0 Kudos

Re: changing iteration count of a while/for loop

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

Member
RJ_15
Posts: 55
0 Kudos

Re: changing iteration count of a while/for loop

Thnx a lot :smileyhappy:

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. :smileyhappy:

 

Regards,

Runjhun.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page