Showing results for 
Search instead for 
Did you mean: 

Calculating Elapsed time between edges


I'm coding a vi where we have a digital input laser that shines on a reflector. When the beam is broken (rising edge) then our DAQ reads that an event happens and adds one to a counter. I was tasked with taking this program and calculating if the time between rising edges exceeds two and a half minutes, then that time is added to a total time calculation. This time will continue to add until the next rising edge occurs. When the next edge is read then we need this time to stop, save, and wait until the next time period of 2.5 minutes passes then add to the total time again.

0 Kudos
Message 1 of 3

That sounds like a nice simple application to write.  Was there a question?

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 2 of 3

How do you write it?

0 Kudos
Message 3 of 3