LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two button dialog have to press no twice

I put a 2 button dialog in an event structure. When my stop button is pressed the value changes, it enters the event structure and a two button dialog pops up that says do you really want to quit? If yes is pressed the program ends. If no is pressed the dialog box stays open. If its pressed again, then the program continues running. Essentially it does what i need it to do, keeps the program running if no is pressed but its a bit annoying to always have to click it twice. Any way to fix this?
0 Kudos
Message 1 of 3
(2,548 Views)
Is it possible that you may have 2 instances of this dialog in the block diagram, one on top of the other, so you can't see there's 2 of them there? Try moving the VI icon. If not, please post your code, as it may be a race condition.
Message 2 of 3
(2,547 Views)

I had the same issue. Went crazy figuring out why.

Ahaa!! I had my button's mechanical action set up as "Switch Until Released" for some reason. Changed it  to "Latch When Released"

 

I am new to LabView, posting this since I believe this might help someone like me :).

0 Kudos
Message 3 of 3
(1,790 Views)