LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I make a dialog box or is there one already made that can take user inputs but also have a timeout?

I want the user to press "ok" or "cancel" in a dialog box. And if they don't press anything after 1 minute, I want it automatically to submit cancel. Does anyone have a VI, or know where I can get a VI that does this. Thanks in advance
0 Kudos
Message 1 of 2
(2,723 Views)
Attached is one way to do it...if you feed the dialog VI with a timeout larger than zero seconds it will timeout after the given number of seconds.

Using Next multiple instead of checking the actual time does make it slightly inaccurate, but I guess it won't matter whether it times out after 59,5 seconds one time and 60,2 seconds the next...
Message 2 of 2
(2,724 Views)