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.