From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Left click on a button in frontpanel

Go to solution


Can anyone suggest how to use event structure to make a left click on a boolean control ( or BUTTON) using MOUSE DOWN? event....

0 Kudos
Message 1 of 8
Accepted by topic author kimhyun

Hello kimhyun

You can use "Button" field to determine which mouse button was clicked on "Mouse Down?" event. See the attachment.

0 Kudos
Message 2 of 8

Why do you want to capture the left button mouse down event on the boolean control?  The Boolean that you are clicking on generates a value changed event when you left click it!



0 Kudos
Message 3 of 8

Actually after completion of an event, the control has to automatically clicked in order to enter another value change event by that control.

0 Kudos
Message 4 of 8

Thank you PiDi, But the version i am using is 8.5. So i can't access the VI that you have posted. Can u plz send me the screenshot of that VI.

0 Kudos
Message 5 of 8

You can return the control to its original state by writing to the value property before he code run by this event completes ready for the next one



0 Kudos
Message 6 of 8


Control with a latching mechanical action cannot use value property.....

0 Kudos
Message 7 of 8

You didn't say your Boolean was latched.  Does it need to be latched.  Convert it to switched and the property node can be used to revert the Boolean back to off in the event so it behaves just like a latch.  Not sure what you are trying to achieve that is extra to normal Boolean in an event structure behavior.  Can you post code (.vi not .zip) or code snippet that illustrates your problem.



0 Kudos
Message 8 of 8