LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

different front panel depending on case structure

Solved!
Go to solution

I have a VI with a 2 option case structure(true/false boolean). I am wondering if there is a way to have different controls showing on the front panel depending on if my boolean for this case structure is set to true vs false. Each option of the case structure has its own controls and indicators that the other doesn't need.

Thanks

0 Kudos
Message 1 of 6
(4,132 Views)
Solution
Accepted by topic author ENGRLAB

You could use a tab control to group the two FPs.

 

Use a "boolean to 0 1"  to choose which tab to show. You can hide the tabs so nobody will evr know.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(4,129 Views)

Thanks! This will be perfect

0 Kudos
Message 3 of 6
(4,099 Views)

I have the same situation.  Except I have ~12 different case structures with different front panels.  Some with plots/charts/etc.   Will this eventually slow down the execution of the VI with all these tabs running in the bacground?

 

I guess alot of these charts/plots won't be updated as their controls will only be used during their respective case structure frame.   I guess I won't know until i try...

0 Kudos
Message 4 of 6
(3,948 Views)

Hi there,

 

As long as the code isn't being told to execute simultaneously, you shouldn't be running much of a problem.  Please let us know how it works out for you.

 

Thanks,

Jon S

 

Applications Engineer
National Instruments
0 Kudos
Message 5 of 6
(3,925 Views)

A slightly more advanced alternative is to use a Sub-panel instead. Depending on what/how the program does it can be a better choice.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(3,909 Views)