LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

increment index while loop

Hi,

I have a little problem. I have a while loop and I want to increment its index by a number when a condition is satisfied into it. How can I do it?

Thanks,

ToNi.
0 Kudos
Message 1 of 3
(4,890 Views)
Hi Toni,

Let see my screenshot of code.
I'm using a shift register on the while loop.
When the condition is satisfied, it increments the number in the shift register, and if the condition is not satisfied, it's doing nothing.
At the end of the loop, you can recuperate the number incremented in the shift register.
Best regards,
G Liagre
0 Kudos
Message 2 of 3
(4,885 Views)
Jut keep your onw index in a shift register and increment in a case structure. (see example, LabVIEW 7.1).
0 Kudos
Message 3 of 3
(4,883 Views)