LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying secondary panels.

Hello Everyone

I am calling a second panel from my main top level panel. I have noticed that while the second panel is displayed, it is possible to change the states of controls on the main panel although this doesn't cause a change in the system until the second panel is closed.

There are two things I would like to be able to do whilst the second panel is diplayed.

In the first case, I would like the primary one to be either disabled or made invisible to the user. As an example, in Delphi programming I would call the second panel modally which would ensure the user can't change the primary panel until the secondary one has been closed.

In the second case I would like to be able to have full functionality of the
main panel while the second panel is still displayed.

Thank-you.


David.
0 Kudos
Message 1 of 4
(2,855 Views)
Look at Labview's Online Help and search for "VI Setup Priority Setting" and "Subroutine Priority Level". It describes some of the configurations you may need to set. Good Luck!
0 Kudos
Message 2 of 4
(2,855 Views)
Hi,


An easy answer to your problem, is to make the second panel as a Dialog Box. This will make it modal to your main panel.

On the subVI, Select VI Setup, select Window Options and check the Dialog Box control. (by default this control is unchecked).


Regards
Ray.
Regards
Ray Farmer
0 Kudos
Message 3 of 4
(2,855 Views)
For the first case, you can manage to hide your main panel window using gtoolbox window management (gtoolbox.topcool.net) or LVUTIL32 at NI website. This way, you can hide the window to avoid anyone to mess with it.
For the second, you should have both vi's in the same level, i mean that if you put the secondary vi inside the while loop of the primary, this will wait the secondary to finish, so, you'll have to either call it dinamically or outside the main loop.
Hope this helps
0 Kudos
Message 4 of 4
(2,855 Views)