I am using the elapsed time express VI along with an "in range" comparison VI as the exit control for a torque test. If the voltage signal from the torque transducer is within the specified range for the target time, the loop exits. If the voltage signal is out of range, the elapsed time resets to zero.
My problem arises when i exit the loop prematurely due to excessive torque. Like if torque reaches the transducer limit, I want to exit the loop to prevent damage. When i exit the loop like this, the elapsed time VI continues counting even though the loop has been stopped. The next time the program enters the state, it exits immediately (because torque is initially zero, and the timer has passed the set time). After that iteration the program behaves as i expect it to, because the VI has reinitialized I assume. I have been stuck on this problem for several days, and I'm going to start breaking company computers if i can't fix it.
So my question(s)... is there a way to reset the elapsed time VI upon entering the while loop? is there a way to reset the VI from the 'torque limit' state immediately following the exit? I also use a 'resume test' button so the user can restart the test after checking the unit,hardware,etc. can i wire something to that button press to restart the elapsed time VI?
My 7.1 vi is attached, the elapsed time problem being in the 'exercise' state. immediately following an 'exercise' torque limit, it goes to the 'torque limit' state, which i thought could be used to reinitialize the elapsed time somehow.
Thanks,
Evan