From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Reset a counter in a ForLoop??

Hi,
How i can reset the counter in this forloop. Because when the forloop are reset the counter does not return to zero, how i can do this.
Thank You Exemple Program.PNG!!!

0 Kudos
Message 1 of 2
(3,096 Views)

You can't reset a for loop iteration count.  Every time the loop executes, it will start at zero and count up.  So, based on your code, about every 500 ms the iteration count will start at zero and count up to 49.

0 Kudos
Message 2 of 2
(2,750 Views)