LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create pop up/prompt message for few second??

Usually when we go for message or prompt user dialog, it will display the message and request for user response by click OK/Cancel. How to just prompt the message for few second without request user response??
 
Regards,
Simon76
0 Kudos
Message 1 of 6
(4,151 Views)

hi there

you have to write a Sub-VI for this. Use a "Wait ms" function and a FrontPanel.Close invoke node afterwards inside the Sub-VI. make sure to set the window mode to "dialog" and to disable the "User can minimize window", "User can resize window"  and "User can close window" and hide the menu bar and the tool bar.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 6
(4,142 Views)
Just create (sub)vi that show up when called and that terminates itself after a programmend time.
Insert this subvi in your application, right click on the icon and select 'show frontpanel when called' and 'close FP when finished'
 
uups chrisger was faster Smiley Very Happy

Message Edited by Henrik Volkers on 08-28-2007 10:30 AM

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 6
(4,141 Views)
yeah, but your solution needs less code
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 4 of 6
(4,135 Views)
At the moment you probably have a while loop, with a wait, and a boolean control that is polled. (An event structure is overkill in this case).


To modify it, use the "Get Day/Time In Seconds" function. Put it before the while loop. Put another one inside the while loop. In the while loop, extract the time outside the loop from the time inside the loop. Compare the result (a double in seconds) with the number of seconds you want it to show. Wire the result to the stop condition, and you're done.


If you want to use an event structure (e.g. if you have user events, or a complex ui), put the comparation in the time out case, and wire a time out to the event structure.


Regards,


Wiebe.
Message 5 of 6
(4,134 Views)

Hi guys,

Thanks for the fast response. I able to get what i want.

On the beginning, i put the the dialog message inside the while loop which always request to press the button, now seem settle already.

Cool.

Regards,

Simon76

0 Kudos
Message 6 of 6
(4,128 Views)