05-24-2012 11:23 AM
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.
Solved! Go to Solution.
05-24-2012 11:30 AM - edited 05-24-2012 11:30 AM
right-click, "mechanical action"?
When in doubt, just right-click something and look in that menu.
05-24-2012 11:38 AM
What you want is the "Latch when Released" mechanical action. The button will reset when the terminal is read on the block diagram.
05-24-2012 11:46 AM
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!
05-24-2012 11:55 AM
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.