06-15-2011 10:03 AM
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
06-16-2011 01:46 PM
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.
06-16-2011 02:04 PM
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
06-16-2011 02:19 PM
@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.
06-16-2011 02:23 PM
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