LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting the number of cycles

I have a program that runs until the stop button is pressed taking readings every xx seconds. I would like to display a number that counts haw many readings have been taken. I see that there is an accumulator that will add 1 to a number, but how do I start it off and keep it going?
Thanks, Ringo
0 Kudos
Message 1 of 3
(2,624 Views)
Either use a shift register initialized to zero or wire the increment function to the iteration terminal of your while loop. I've attached a picture that shows both methods.
Message 2 of 3
(2,624 Views)
That is exactly what I needed, Thanks.
Ringo
0 Kudos
Message 3 of 3
(2,624 Views)