03-07-2018 10:53 PM
Hi Community,
I've recently encountered a problem using labview elapsed timer vi. I would like to control a reset boolean button to make it click for ONE time everytime i press the infuse/withdraw button. Any ideas on how to do it?
Thank you!
Solved! Go to Solution.
03-07-2018 11:08 PM
If you want it to be latching action, then you need to right click and set the mechanical action to Latch when released. Right now you have it set for switch when pressed.
As for your "click one time", I'm not sure what you are trying to explain.
03-07-2018 11:13 PM
There's two buttons in the VI namely, Direction P1 and the reset button. I would like to link the Direction button to make the reset button latch once and go back to default so that my timer would be reset every time i press the Direction button, starting a new cycle.
03-07-2018 11:18 PM
Why not just have the Direction button and the Reset button OR together before going into the Reset input?
03-07-2018 11:24 PM
Hi RavensFan,
The reason i did not do that is because i would still need the timer to run when it's in the true case. If i OR the two boolean buttons, the input from Direction button would always be true and my timer would stop running when its in the true (withdraw) case and only runs in the false (infuse) case.
And in my application, i would need it to run on both cases.
03-08-2018 09:25 AM
Are you saying that you only want the reset to occur when you change the Direction from True to False, or False to True? That Direction should be a switch action and not a latch action control?
If so, use the subVI called Boolean Crossing Pt by Pt (point by point). It only outputs a true when the incoming boolean changes. You can choose which direction (T->F, F->T) or in either direction. Feed that to an OR with the reset button.
03-08-2018 11:16 PM
It works! Thank you so much RavensFan