LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spring Push Button

Solved!
Go to solution

Hi all I'm new to LabVIEW and learning it up for my final year project. Thank you in advance for the help from you guys. 

I have a question here:
Is it possible to create a button with spring back effect? Means I wish to have a switch at the front panel which acts controller of our car alarm, press once to trigger the action/motion, yet we do not have to press it AGAIN to switch it off, and prepare for the next activation. 

 

Thank you if anyone out here is willing to give me a helping hand. Good Day.

0 Kudos
Message 1 of 5
(3,976 Views)

right-click, "mechanical action"?

 

When in doubt, just right-click something and look in that menu.

0 Kudos
Message 2 of 5
(3,974 Views)
Solution
Accepted by topic author Acekay Sim

What you want is the "Latch when Released" mechanical action.  The button will reset when the terminal is read on the block diagram.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,968 Views)

Hmm actually I did play with the mechanical actions.

Ya that is true as I just need to set it as Latch When Released.

I think I was confused by the color changing when you press on the Button.

I just release I can actually change the color of the button into the same color, so it looks like actually same and able to trigger when you press on it.

 

Thank you guys! I'm so silly by asking simple as this. Answer from you guys really help a lot!

0 Kudos
Message 4 of 5
(3,965 Views)

In particular, there are several mechanical action settings that have a "spring back" effect. most popular are latch action, which reset to the default state once the control has been read by the code once. This ensures that the program sees it. "Latch when released" is probably the most popular.

You typically don't want to use e.g. "switch until released" because the code can easily miss it or see it more than once.

0 Kudos
Message 5 of 5
(3,961 Views)