07-06-2011 10:23 AM
HI,
I am attempting to do a for loop similiar to the following c text ( for i=32, i+2)
Please tell me if it is possible to increment in Labview by more then 1 in a for loop and secondly if I can start the loop at another number except for 0
Thank you
Solved! Go to Solution.
07-06-2011 10:27 AM
You can multiply [i] by two and you can also add a constant to the result. That should be sufficient, right?
07-06-2011 10:27 AM - edited 07-06-2011 10:28 AM
Nope. Loops start at 0 and increment by 1
Of course you can use "i*2" and N=17 to generate the series 0,2,4,6,8...,32
07-06-2011 10:29 AM
You can also create your ramp using e.g. "ramp pattern" and autoindex the result into the FOR loop.
07-06-2011 10:30 AM
As far as i tried I can not update I - I tried i +2 but that is good for the graph and not for the loop. I did not manage to to start i on 32
07-06-2011 10:33 AM
You can not modify i. It tells how many times the loop has iterated and that is it. You can wire 32/2 to the N terminal.
07-06-2011 10:33 AM
Thanks I will try but I still am interested to know if there is a way to start I on any number and increment by more then 1
07-06-2011 10:36 AM
There are plenty of ideas out there to add this functionality in the future. (example)
07-06-2011 10:42 AM
Thank you, I guess I will just have to work my way around this case, I have some ideas but i was trying to shorten it to one for loop
07-06-2011 10:47 AM - edited 07-06-2011 10:47 AM