LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically turn off a dialog box

Solved!
Go to solution
Highlighted

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

0 Kudos
Message 1 of 3
(487 Views)
Solution
Accepted by topic author rw2018
03-09-2018 04:21 AM

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
(460 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
(451 Views)