LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dialog button that times out if no selection - LV PDA

Hi!
In my application I have a timer set up in the default case which is activated when no user action has occurred. I am also using a dialog box function. I would like the dialog box to timeout after every 5 seconds and then subtract the 5 sec timeout from the timer so that the 5 sec taken by the dialog box is also accounted for.
I know instead of using the dialog box, I can create a pop up subVI but as my application is for PDA, the pop up subVIs takes the full screen space on PDA and at present there is no way to make the pop up subVI display as per the custom size set.
Is there any way to timeout the dialog boxes for PDA??

Thanks,
Rachana
0 Kudos
Message 1 of 6
(5,074 Views)
Hi Rachana,

I would suggest creating a custom dialog box subVI that will programmatically stop after a timeout of 5 seconds. See sample VI below.

Kileen
0 Kudos
Message 2 of 6
(5,040 Views)
Thanks Kileen for your reply.

I am actually aware of creating the custom control but that is not functional on the PDA. There are two limitations which I see at present and need any workaround or suggestion for it.
1. Property nodes are not supported on the PDA.
2. Even when the size of the subVI(custom dialog) is set to a certain width and height, when this subVI is deployed and opened on the PDA, it takes the full screen size of the PDA and hence it does not appear as the dialog pop up.

Any thoughts/ suggestions on how to achieve custom dialog pop up with these two limitaitons?

TIA
Rachana
0 Kudos
Message 3 of 6
(5,038 Views)
Hi Rachana,

There's no way to programmatically cancel the built-in dialog boxes in LabVIEW. You would want to have your own dialog that you could then exit out of given a certain amount of time. Although property nodes are not supported on the PDA, you can usually work around with local variables. In my previous post, the property nodes are actually not necessary and the entire program does not need the property nodes.

Popup VIs in general are not well supported on the PDA. The popup will take up the entire screen, despite the custom height and width settings that might be set. Unfortunately, this is simply a limitation of LabVIEW PDA at this moment.

Thanks,
Kileen
0 Kudos
Message 4 of 6
(5,021 Views)
Thanks Kileen.
I am hoping that NI would provide me with something, now or in future and until then I guess I'll have to live with the limitation.

Have a nice day,
Rachana
0 Kudos
Message 5 of 6
(5,014 Views)
Hi Kileen,
 
I know that post is a few years old, but I gotta say that this little program you wrote is very impressive! Pretty slick!
 
I've been trying to write up something like this the past couple of days and banging my head on the wall trying to come up with something. I even went as far as asking for help too! I'm using the base of it and making a few modifications to see if will also do measurements while the dialog box is ongoing.
 
Thanks for putting it out there! Smiley Very Happy
 
Steve
0 Kudos
Message 6 of 6
(4,032 Views)