Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66749

accumulated timer with multiple starts and stops

$
0
0

I Know this is probably a duh moment, but I need to create a timer that when an I/O state goes true keeps track of seconds and when the I/O state goes false stops the timer but keeps the seconds and adds it the new seconds when the timer starts again.

 

So this is an accumulated timer with multiple starts and stops (In ladder logic I would just use an accumulated timer, turn it on and off).

 

I like the idea of using the “Elapsed time” but I need some way to store the seconds and not be reset to zero when the timer stops. Ive tried “loop back nodes” but need some way to isolate it so it doesn't see the reset zero. Or maybe theirs a better way. The solution just keeps hiding from me.

 

I have multiple NI 9421’s talking via eNet to LabView 2010 on Windows7, reading boolean states with single channel lines from DAQ Assist. 24 cnc machines, reading 4 different on/off states each. I want to know how long each machine has been on and/or off in each state, accumulative.

 

Eventually displaying on a monitor each state like a semaphore, and recording to a file for future use, but I think I have that part worked out. Any help would greatly be appreciated.


Viewing all articles
Browse latest Browse all 66749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>