LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to press a switch that holds, and cause it to ONLY momentarily cause another Boolean to switch from F to T?

Is there a way to have a Boolean switch that stays pressed when released cause another Boolean to switch only momentarily from False to True?
0 Kudos
Message 1 of 3
(2,193 Views)
You can enclose them in a while loop with a shift register that registers the initial closure of the first switch (T), places this value on a Shift register, then on the next interation of the loop compares this value to the current switch.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 3
(2,184 Views)

Purdue17 wrote:
Is there a way to have a Boolean switch that stays pressed when released cause another Boolean to switch only momentarily from False to True?

 

Please explain a little better.  Do you want the first switch to cause a momentary toggle of the second switch when the first switch is pressed?  Also, do you want the first switch to stay on after mouse up?  Or do you want the first switch to cause a toggle when the first switch is released.  By released, do you mean when the mouse is released or when the switch is clicked a second time.

 

Maybe explain like this:

Mouse down on switch 1 - cause toggle of switch 2

Mouse up on switch 1 - switch 1 stays on until Mouse down a second time.

 

or maybe:

Mouse down on switch 1 - switch 1 goes on, nothing else happens

Mouse up on switch 1 - switch 1 goes off and switch 2 toggles.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 3
(2,160 Views)