LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i create objects dynamically

i want to create objects/controls/indicators dynamically. how should i proceed?
0 Kudos
Message 1 of 7
(3,507 Views)
One way of doing this is to create subpanels and insert front panel objects from another VI. By this you can create FP controls and indicators dynamically.
0 Kudos
Message 2 of 7
(3,507 Views)
thanks a lot
can you explain it in details
0 Kudos
Message 3 of 7
(3,507 Views)
Look at the example viewer.vi that ships with LabVIEW. Let me know if you have questions after reviewing the example.
0 Kudos
Message 4 of 7
(3,507 Views)
Hi,

Since Front Panel objects in LabVIEW are the place holders four your values; you can't create front panel objects on the fly. Besides from the technique mentioned here of loading the VI dynamically, I suggest that you hide the controls that you want to create on the fly and just show them on the fly. Sometimes an array of controls can also help you to show dynamically more elements on the fly.

I hope this helps.

Regards,

Juan Carlos
NI
Message 5 of 7
(3,507 Views)
thanks a lot.
this is a great help for me.

shubhalaxmi
0 Kudos
Message 6 of 7
(3,507 Views)
If you want to apply the visible property to multiple objects, you may want to use references to modify the VIs. In the example finder look for "references", there are a couple of examples that can give you some hints.

Good luck with your project.

Juan Carlos
0 Kudos
Message 7 of 7
(3,507 Views)