LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is there any way to make an external SPST pushbutton act as a Latch when Pressed button?

Hey,
I just wanted to know whether or not there is there any way to make an external SPST pushbutton act as a Latch when Pressed button? I have about 10 pushbuttons that can be pressed, and upon the press, a TTL signal is sent into LV. I want to be able to have each pushbutton push activate a valve for a certain amount of time (approx 300ms). The programming for the valve control is worked out, I am just running into a problem when the user presses and continues to hold the pushbutton for more than 300ms because this causes the valve to open a second (and third, ...) time. Is there any way to solve this problem in LV. Thanks.
JOe
0 Kudos
Message 1 of 3
(2,531 Views)
Hi Joe

I attached a simple example how you could do it.
If a button is pressed, just react on the rising edge. Use this to start a timer which enables another signal.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(2,525 Views)
Thomas,
Thanks alot. It works perfectly. That never would have crossed my mind. You saved me a boat load of time.
Thanks again.
JOe
0 Kudos
Message 3 of 3
(2,503 Views)