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

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid multiple single clicks in Event Structures

Solved!
Go to solution

I am using event structures in my programe and I want to avoid the case when user mistakenly presses the single click button multiple times, because if the user presses the single click button multiple times the event is registered mutliple times and the funtion inside "Value Change" gets repeated multiple times as well. I want to avoid this scenario. 

Can anyone please help in this regard.

0 Kudos
Message 1 of 3
(3,426 Views)
Solution
Accepted by topic author shami81

Well, there is the "Lock Front Panel Until Event Case Completes".  You could also disable the button until a timeout happens.  Another option if you have LabVIEW 2013 or later is to limit the number of event cases (option just below the locking of the front panel in the Edit Events dialog).


GCentral
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
Message 2 of 3
(3,424 Views)
Thanks a lot for for your time. I implemented the first solution and it worked perfectly fine.
0 Kudos
Message 3 of 3
(3,393 Views)