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: 

How to automatically turn off a dialog box

Solved!
Go to solution

Hello

 

I'm wanting to create a VI to control a dialog box that has the option of:

1) being used normally - i.e. the user presses a button to close the box; or

2) being turned off after a period of time without any user activity.

 

I've made an attempt with 'TwoButDialBoxWithTimer.vi' by using a case structure to control the different options. An Event Structure is used to to hold the 'Two Dialog Button' for option 2. However, when the Event Structure times-out in the 'TestDialBoxWithTimer.vi', the dialog box does not disappear.

 

I would be grateful if anyone could advise me on what I am doing wrong, please.

 

Thanks

 

RW

Download All
0 Kudos
Message 1 of 3
(2,438 Views)
Solution
Accepted by topic author rw2018

You have to create your own Dialog sub-VI. Just calling the Two-Button-Dialog within a subvi won't work, because the Two-Button-Dialog is blocking the execution of your "timer" sub-VI.

ʍolɟɐʇɐp ʞuıɥʇ
0 Kudos
Message 2 of 3
(2,411 Views)

Thank you for your response.

I've now managed to get the message box up and running as required as per your suggestion.

Thanks for replying.

0 Kudos
Message 3 of 3
(2,402 Views)