LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a LabVIEW function that will pop-up a dialog box to prompt the user if he is sure he wants to do when a boolean switch is pressed?

I want to prompt the user by asking, "Are you sure you want to do this?" when the user presses a switch.  If the user clicks "Yes" then the switch changes state, if the user clicks "No" then the switch retains the current state.  Does such a thing exist or do I have to invent it?  I am new to LabVIEW.
Thanks.
0 Kudos
Message 1 of 5
(3,114 Views)
Look under the Time and Dialog Functions for one and two button dialogs. Use appropiate logic and flow for your application for the yes and no responses
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 5
(3,106 Views)
You can use an event structures filter event on mouse down for something like this.  Pop up a dialog and invert the logic for the output and sent it to the Discard? modifier on the right side.  See example for assistance.
0 Kudos
Message 3 of 5
(3,101 Views)

Chaos,

I appreciate the help.  I think that will get me where I want to go.  I am taking a labview class next week, so hopefully I won't have any more dumb questions, but I have one now.  How do you add the discard modifier in an event case.  Even when I duplicated the case for another boolean, the modifiers all turned white and I can't figure out how to fix them.  Thanks again for the help.

MA

0 Kudos
Message 4 of 5
(3,089 Views)
The other question I have is how do make it give a boolean output?  I need it to give a true or false depending on the state of the button/indicator.
0 Kudos
Message 5 of 5
(3,075 Views)