LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display one of several interfaces on the front panel, based on user selection?

Using LabView 7 in Windows XP...

The user should be able to choose one of (probably four) different front panel layouts that appropriately displays that data. Is there any way to have a different set of front panel objects appear based on a user's selection of, say, a radio button?

Thanks.
0 Kudos
Message 1 of 3
(2,532 Views)
I can think of a few ways to do this. Since you're using LV 7 though, I think the best way is to embed a panel from another VI (new feature to LV 7). Since you can embed a panel, you can load that panel from the disk. You could have a lot more than just 4 and you can change them any time just by loading a new one. Very handy.

Rob
0 Kudos
Message 2 of 3
(2,532 Views)
> The user should be able to choose one of (probably four) different
> front panel layouts that appropriately displays that data. Is there
> any way to have a different set of front panel objects appear based on
> a user's selection of, say, a radio button?
>

You can either build a panel that acts as a simple UI and put most of
the program in one or more subVIs. This allows for one of the UIs to be
opened, and the others stay on disk. If the change needs to happen
interactively, then you might need to have something to copy info from
one panel to the other.

A less expandable, and probably messier diagram could let you put each
UI in a tab of a tab control. Hide the tabs, and programmaticaly update
the tab value to swap out the UI.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,532 Views)