From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Left click on a button in frontpanel

Solved!
Go to solution

Hello,

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
(2,541 Views)
Solution
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
(2,534 Views)

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!

 

Ken

0 Kudos
Message 3 of 8
(2,526 Views)

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
(2,512 Views)

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
(2,509 Views)

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

 

Ken

0 Kudos
Message 6 of 8
(2,508 Views)

Ken,

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

0 Kudos
Message 7 of 8
(2,494 Views)

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.

 

Ken 

0 Kudos
Message 8 of 8
(2,485 Views)