LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic creation of front panel

Hi!

I wonder if it is possible to dynamic create ,for example, indicators (front panels).

I would be grateful if someone could show me, for example, a loop where you create several indicators, if it is possible. How do you reach these indicators, after you have created them???

Example please, it is so much easier to understand, but of course more work for you! 😞
0 Kudos
Message 1 of 6
(5,573 Views)
It is not possible to create objects on a front panel. Front panel code is compiled in as a resource when the VI is run. I believe that there are some things that have been mentioned in info-labview and on the DevZone about creating objects on front panels that are not running and then dynamically calling that. But, that is not yet supported by NI and therefore should be carefully considered before you try it.

Let us know why you need this feature and maybe that is another way to get at the same answer.

Hope this helps,
Bob Young
0 Kudos
Message 2 of 6
(5,562 Views)
Unfortunately, since each indicator is also a variable, this can't be done (Not simply, anyway). One way you could do this is using an array. You can change the size of the array using property nodes. The other option, like Neil mentioned in your other thread, is to have the maximum number of controls you will need and showing\hiding them. Another option would be to use a picture control. Other than the array option, all of these are inconvenient, I agree. You could, theoretically, create subVIs at run time and use them as indicators, but this ins't easy either.

___________________
Try to take over the world!
Message 3 of 6
(5,559 Views)
In case you're interested in the undocumented and unsupported scripting features (at least in 7.0 and 7.1), you can check the LabVIEW Scripting forum at LAVA.
Message 4 of 6
(5,551 Views)
You can create Windows objects, such as Edit box (like Notepad), Button, Listbox, ListView (Window Explorer),
Statusbar, Toolbar, TreeView, etc. at runtime using Window API.

George Zou
http://gtoolbox.yeah.net
George Zou
Message 5 of 6
(5,547 Views)
Hi,

Here is a vi that I think does what you need. Let me know if you need more help.
Message 6 of 6
(5,537 Views)