LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ONE BUTTON DIALOG BOX

Hello 

 

i am making a fire sensor using Arduino UNO as the DAQ

 

 

i want a condition where a one button dialog box appears before the operator when the LED in my vi glows

 

i am enclosing vi along

 

 

thanks in advance 

 

jalashwa

 

0 Kudos
Message 1 of 6
(4,815 Views)

Hi Jalashwa,

 

You can use a One Button Dialog.vi within a case structure (see image attached).

 

The One Button Dialog.vi can be found in the functions palette in Programming >> Dialog and User Interface.

 

I hope this helps.

Josh E
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 6
(4,809 Views)

duplicate post from someone who cannot understand when an answer is given.

Message 3 of 6
(4,806 Views)

You could just put the 1 Button Dialog inside of a case structure.  But I have a feeling there's more to your problem.  Do you want your loop to "freeze" while the dialog is up?  What is the purpose of the dialog?  Maybe a simple string indicator would work for your purposes.


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
0 Kudos
Message 4 of 6
(4,799 Views)

hello 

 

i thanks all of you for your support

 

i have almost completed the vi

 

as suggestsed i have put the dialog box in the case structure. i want the dialog box to appear when the value of my arduino is move than 35

 

i have a probelm that i cant turn the dialog box if the value remains above 35

 

further my alarm does not go on . please let me know if the connection is correct

 

i am enclosing the vi

 

with warm regards

 

jalashwa

 

0 Kudos
Message 5 of 6
(4,746 Views)

Hi Jalashwa,

 

wow: a classic Rube-Goldberg combined with some unneeded type coercion:

check.png

Ever heard of "boolean operations"? Ever considered to wire the boolean input directly to the case selector?

 

"i want the dialog box to appear when the value of my arduino is move than 35"

So it does...

 

"i cant turn the dialog box if the value remains above 35"

What do you want to "turn"? You have it programmed to show a dialog box when there is "DANGER". Now you don't want to show that dialog box when there still is "DANGER"?

 

"further my alarm does not go on"

Which "alarm" are you talking abput? There is no indicator with that name...

 

You really should go through LabVIEW basics. In the next step you should learn to define (!) your goals in clear steps (!) - a thing every programmer has to learn...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(4,728 Views)