LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Indicator/Control on GUI

Is there a way to dynamically change a control or indicator on a GUI's front panel without using a Subpanel? I'm specifically thinking about an application which contains multiple hardware configurations. Each configuration is an Object-Oriented child of type "UUT" with different control/indicator configurations.

 

I have an example which uses sub panels, but I'm looking for something that can use the Class control directly instead of creating an additional control 

0 Kudos
Message 1 of 5
(2,972 Views)

Hi Nelson,

 

I'm trying to understand what you are asking, do you want the control itself to change for the different hardware configurations or are you wanting to change what controls are shown, just without using subpanels?

 

Regards,

Peter W.

 

 

0 Kudos
Message 2 of 5
(2,938 Views)

Question:

 

What is wrong with using a sub-panel?

 

i just insert a VI using mehtods of the class that loads a screen consitiant with itself.

 

Curous,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 5
(2,934 Views)

@peter W wrote:

Hi Nelson,

 

I'm trying to understand what you are asking, do you want the control itself to change for the different hardware configurations or are you wanting to change what controls are shown, just without using subpanels?

 

Regards,

Peter W.

 

 


In a word, yes. More specifically, I want to be able to use the control in the Class. However I could live with creating

a type def and then have that be my class control. 

 


@Ben wrote:

Question:

 

What is wrong with using a sub-panel?

 

i just insert a VI using methods of the class that loads a screen consitiant with itself.

 

Curous,

 

Ben

 

 


I'm not saying that there's anything necessarily wrong with that except for the added complexity. 

 

Have you had a chance to look at the example I created? Is that like something you do?

 

I think I'm coming to the realization that there may not be a perfect way to change a control on a gui without a subpanel.

 

0 Kudos
Message 4 of 5
(2,924 Views)

Since you are talking LVOOP then the easiest approach will not work (Show hide what existing controls).

 

The next most simple is to use a sub-panel to add parts of the GUI to meet your needs.

 

True controls on the fly is possible but has only be implemented by absolute nut-cases (like myself on three ocations) and is by far much more complicated than using a sub-panel.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(2,921 Views)