From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Dialogue on a Timer

Solved!
Go to solution

I am writing software that will not be constantly monitored.  On various errors, I am popping up a dialogue box which describes the error and asks if the user wants to "Retry" (button 1) the previous operation or "Quit" (button 2).  I would like to show that dialogue box for a few seconds, then automatically choose the "Retry" option and close the dialogue box if no user input is detected.  Does anyone have an example of a good way to do that?  Thanks.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 3
(2,165 Views)
Solution
Accepted by topic author diarmaede

The default dialogue box won't do what you need.

 

I would just do a simple VI with an event structure with 10s or something wired into the "timeout".

Message 2 of 3
(2,164 Views)

Good solution!  Works like a charm.  Thanks.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 3
(2,130 Views)