HChandler Posted September 13, 2007 Report Share Posted September 13, 2007 I've used the event based dialog template with some sucess. I would like to go a step further and keep the dialog VI running in the background, toggling its visibility from a front panel control. Can I use a dialog to contain a polling loop, state indicators and other controls and toggle it open and closed the from my MAIN panel? I'm trying to use non modal dialog boxes to create, maintain and monitor backgrownd processes. I would love a simple example that shows how to toggle the visibility of such a thing from the front panel of my main user interface panel. Thanks Quote Link to comment
Ton Plomp Posted September 13, 2007 Report Share Posted September 13, 2007 QUOTE(HChandler @ Sep 12 2007, 06:26 PM) I've used the event based dialog template with some sucess. I would like to go a step further and keep the dialog VI running in the background, toggling its visibility from a front panel control.Can I use a dialog to contain a polling loop, state indicators and other controls and toggle it open and closed the from my MAIN panel? I'm trying to use non modal dialog boxes to create, maintain and monitor backgrownd processes. I would love a simple example that shows how to toggle the visibility of such a thing from the front panel of my main user interface panel. Thanks Have a look at the LabVIEW examples. If set to task based tree (the default) there's a branch 'Progrmatically controlling VIs', browse through these items. Good-luck Ton PS you need to use the method 'Open front panel', with the hidden state Quote Link to comment
HChandler Posted September 13, 2007 Author Report Share Posted September 13, 2007 OK so far I can toggle the dialog/info window from my main panel to be hidden/standard and minimized/standard too! Now I'm trying to wire up the OK and cancel buttons to hide or minimize the dialog/info box. Problem is it just locks up. What am I doing wrong? Thanks Quote Link to comment
JDave Posted September 13, 2007 Report Share Posted September 13, 2007 QUOTE(HChandler @ Sep 12 2007, 11:30 AM) OK so far I can toggle the dialog/info window from my main panel to be hidden/standard and minimized/standard too! Now I'm trying to wire up the OK and cancel buttons to hide or minimize the dialog/info box. Problem is it just locks up. What am I doing wrong? Thanks You're referring to buttons and code logic that we can't see. If you upload your code, we can see what is wrong. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.