08-18-2011 07:16 AM
How to create dynamicly a frontpanel from a selection? The selection is before runtime, the creating is at runtime from a selection of files and configurations.
08-18-2011 07:18 AM
I think the question needs explanation
08-18-2011 07:25 AM
I have a product with 5 possible color schemes. The front panel shows it picture. Instead of making 5 different front panels, I want to make 1 panel that is dynamicly created from a set of settings.
08-18-2011 07:40 AM
08-18-2011 08:03 AM
I was thinking bout making a parent class with a method "dynamic FP creation". And then the (children) products can inherit this method.
So the parent hold the method (loading the leds, pictures, buttons) and the child hold the config(settings) for the method. Something in that style.
08-18-2011 08:15 AM
Hi Jo,
that has been asked a lot of times before!
You can:
- use VIScripting: it is only allowed in development environment, but not at executable runtime...
- use a picture indicator to "simulate" all controls/indicators...
- predefine controls/indicators (at reasonable quantity) and enable/show/move them at initialization...
It doesn't matter if you're using OOP or functional approach, you're limited by LV possibilities!
08-18-2011 08:47 AM
@GerdW wrote:
[...]
- predefine controls/indicators (at reasonable quantity) and enable/show/move them at initialization...
That one can also be done with invisible tabs, with no need to use Enable/Show/Hide property nodes. I have a demo somewhere if the OP wants it. Of course, this method, and Gerd's, assumes you have a reasonable quantity of controls/indicators, as Gerd mentioned.
08-18-2011 09:54 AM
Have you considered using a plugin architecture and subpanels. Here is a good example of such an approach.
08-18-2011 01:40 PM
Yes please, I like that demo. Happy to learn :).
08-18-2011 01:48 PM
Here ya go.