LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting runtime and change in direction/full cycle through

Okay I am having trouble figuring out how to include a counter in my program. I have attached the program to this post. I need to be able to count the total runtime in hours, minutes, and seconds. From the time we hit start to the time we hit stop the counter should be running. But I do not want it to reset when I hit stop. I need a seperate reset button for that. I can almost get a counter going but it resets everytime I hit stop. I don't know what to do.
Also the programs timed loop sends out the created waveform alternating the direction each time, I need a counter that keeps track of each change in direction. It is basically a count after every complete period which would be from: zero to ramp up, to hold at 80rpm, to stop. After each completion of this cycle I would need a count. I do not know where to insert this counter in my loop. Any help or advice you can offer would be greatly appreciated. Thank you

Tony
0 Kudos
Message 1 of 2
(2,470 Views)
Hi Tony,

It's against our policy to repair customers code, but in your case I made an exception. Let's just say it was because nobody else came to your rescue 😉

I implemented the 'total time' and the 'period counter'.

Hopefully it works...
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 2 of 2
(2,448 Views)