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: 

How to check if a user has clicked on a digital control and changed its value?

Greetings !!!
I am looking for a simple way (without using Windows messages)of knowing if an user has clicked on a digital control and changed its value.
I have tried the key focus property; but I have to click twice to make it work.
If somebody knows a better solution; please let me know.

Thank you in advance for your help
0 Kudos
Message 1 of 3
(2,392 Views)
The simplest way may be to upgrade to 6.1 which has some event-driven capabilities. If that's not an option, you might want to look in the examples at Advanced>User Interface Development>User Interface Events for a way to monitor Booleans, rings, lists, and pull down menus.
0 Kudos
Message 2 of 3
(2,392 Views)
If you just want to know if the value has changed you can put it in a while loop and use shift registers to see if the value has changed.

Brian
0 Kudos
Message 3 of 3
(2,392 Views)