LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Message Prompt for Users

Hello.

 

I'm trying to create a message prompt, parallel to my project which requires a certain amount of gain.

 

If it exceeds the limit, it should prompt us a message, saying that it's overlimit and the program should stop immediately.

 

Message Prompt.png

 

This is something I should be getting.

 

However, the problem now lies in the prompt itself.

 

Whenever, i click OK, it just closes for 1 second, and opens back up.

 

How do I click it once, and the program stops ?

 

Will really appreciate any tips/advice.

0 Kudos
Message 1 of 7
(2,948 Views)

try attaching the "true" boolean of the one button dialog to the stop in the while loop

0 Kudos
Message 2 of 7
(2,947 Views)

@sdkpark wrote:

try attaching the "true" boolean of the one button dialog to the stop in the while loop


OR, even use a select function to throw an error!  YES, it is OK (though commonly frowned on) that USER malfeasance is an error condition.  BUT, you gotta give the user more than 1 second...... Users commonly look at "*_1_MOTOSDG" as they pass by for longer than that.   Hmmmmmm.... perhaps a "re-adjust" with a three button pop-up to OK, Retry, abort with Retry as the default?

 

Edit Note: MOTOSDG is Members Of Their Desired Gender"  and I'm pretty "PC" for a MOTOS oriented person.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 7
(2,940 Views)

How do I get the select function, with a pop of 3 buttons ?

0 Kudos
Message 4 of 7
(2,934 Views)

nice idea!

 

in block diagram

functions palette > programming > dialog and users > 3 button dialog

0 Kudos
Message 5 of 7
(2,928 Views)

Message Prompt.2png.png

 

I've added to the stop button and the message that I want to prompt.

 

But I don't know where do I connect this prompt to my data.

 

ASSISTANCE PLEASE!

0 Kudos
Message 6 of 7
(2,922 Views)

seems like you have to add cases on which button is pressed on the "which button?"

connect it to a case structure afterwards and put true false constants for each buttons.threebutton.png

 

0 Kudos
Message 7 of 7
(2,909 Views)