LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event: button value change

I'm using Labview 8.20. I'm trying to create a simple GUI program using an event structure, where the program executes when the user clicks on a button. So far, I've done this simply by using the event structure and adding an event for the button's value change. I just realized that the button itself has a latch when released mechanism; when the user clicks on it, it's going to toggle from 0 to 1, then back to 0. I'm now concerned that the value change event would then toggle twice; once when the button toggles from 0->1 and again when it toggles from 1->0.
 
I've written similar programs before and I've never had any problems before; I'm pretty sure that the event will only fire once when the user clicks on the button, but can someone please confirm this for me?
0 Kudos
Message 1 of 4
(3,418 Views)

It should only fire a single event.

There may be some examples of UI such as what you described in the forum, or through the Example Finder.

0 Kudos
Message 2 of 4
(3,408 Views)
Yes it will only fire once, but for the mechanical action to work you have to put the terminal for the button in the event case that handles the value change event.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
(3,407 Views)
You can confirm this yourself. Simply put a popup or a breakpoint in the event case.

Regards,

Wiebe.
0 Kudos
Message 4 of 4
(3,390 Views)