LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog box problem in a while loop

Hi!
I would like to open a dialog box with one button. Therefore I am using the
VI located in "time&dialog". I have a while-loop for the rest of my
application. When I place this VI in this while loop, the dialog box opens
always and not once. What do I have to do, to open it only once? Thank you
for your help,
Oliver.
0 Kudos
Message 1 of 8
(3,414 Views)
It's really pretty simple. Put your dialog box inside a case statement and wire the button to the case selector. Make sure the latch action of the boolean is Latch When Released.
0 Kudos
Message 2 of 8
(3,414 Views)
The dialog box is an a case statement and this case statement is in a while
loop. The case selector is wired with the boolean output of the "In Range
and Coerce" VI. The dialog box should appear, when a number is out of range.
But the dialog box appears permanently because of the while-loop. I need the
while-loop for the running of my VI. How can I solve this problem?
Thank you for your help,
Oliver.
0 Kudos
Message 3 of 8
(3,414 Views)
Then it sounds like the number is always out of range or you put the dialog box in the wrong case or both cases. Probe the inputs and outputs of the In Range function and see if they're what you expect. Can you attach the VI?
0 Kudos
Message 4 of 8
(3,414 Views)
Hi Oliver,

following Dennis answers and your reply, I attach a simple vi that shows a dialog when a value is out of range, but it is shown only once when the value is updated.

Good luck,

Alberto
0 Kudos
Message 5 of 8
(3,414 Views)
The problem is, that I cannot send attachments to the Newsgroup. Do you know
a provider, where I can do this? Or can you give me an emailadress, where I
can send the VI? Perhaps you can upload one small example?
Thanx a lot,
Oliver.
0 Kudos
Message 6 of 8
(3,414 Views)
You can post here through the NI website.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=2&UCATEGOR
Y_0=_6&UCATEGORY_S=0
You need to register, but its easy and free.

"Oliver Meike" wrote in message
news:b2u17v$c0c$1@nets3.rz.RWTH-Aachen.DE...
> The problem is, that I cannot send attachments to the Newsgroup. Do you
know
> a provider, where I can do this? Or can you give me an emailadress, where
I
> can send the VI? Perhaps you can upload one small example?
> Thanx a lot,
> Oliver.
>
>
0 Kudos
Message 7 of 8
(3,414 Views)
Hi Alberto,
thank you very much for your example. It is working. In my while-loop I forgot this shift register and so it did not work.
Thank you,
Oliver.
0 Kudos
Message 8 of 8
(3,414 Views)