08-14-2012 10:33 AM
Hello,
A Labview question. A tusk should be repeat 10 times in a for loop. so the value of i in the for loop will be changed from 0 to 9. Sometimes, some tusks may repeat one extra time. It there a way to let me change the value of i in the for loop?
Thanks a lot
Solved! Go to Solution.
08-14-2012 10:39 AM
@Parallel Port wrote:
Hello,
A Labview question. A tusk should be repeat 10 times in a for loop. so the value of i in the for loop will be changed from 0 to 9. Sometimes, some tusks may repeat one extra time. It there a way to let me change the value of i in the for loop?
Thanks a lot
literally no.
You can use a While loop where you control the number of iterations.
It is possible to wire a value to the "N" to limit the number of iterations but if you are indexing an array through an auto-indexing input tunnel the input array will also limit the number of iterations.
Ben
08-14-2012 10:40 AM
the i terminal will always output the iteration number (0 through 9 in your case). But there's nothing that says you can't perform some weird math or use case structure with it.