LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reseting while loop indicator

I have a VI which counts iterations of a while loop when executing by wiring an indicator to the increment counter in the whil loop (the standard method).

What i want to do now is to reset the count when i flip a switch on the front panel without interupting the while loop, i.e. on the next iteration to the one i flip the switch the loop still executes but the count is reset at 0.

Any ideas??

R
0 Kudos
Message 1 of 4
(2,892 Views)
Ross,
You can't reset the Iteration counter if you want to keep the while loop running; however, you can make your own resettable counter. See attached.
Doug
0 Kudos
Message 2 of 4
(2,892 Views)
Doug

Thanks for all your help this week, its made me able to sleep again at nights!!!

R
0 Kudos
Message 4 of 4
(2,892 Views)
I would use a shift register to hold your counter.

See attached...
0 Kudos
Message 3 of 4
(2,892 Views)