LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Change a Property Node Link to Object

Is there a way to programmatically change a "link" to an object in a property node?  I'm trying to create a user configurable front panel for a project that I'm working on, in which the user can change the caption for numerous controls and indicators.  I would like to set-up a for loop that will take information contained in a string array and change each caption accordingly, instead of having 100 different property nodes on the block diagram.  If you need anymore details, let me know and maybe I can attach a picture to the response.
0 Kudos
Message 1 of 5
(3,943 Views)
You just need to access the "Controls" property for the panel. This returns an array of controls and you can just iterate through it and change the captions accordingly, based on your string array. No need for 100 different property nodes. Just a loop.
0 Kudos
Message 2 of 5
(3,941 Views)
I'm really new to LabVIEW, using for about a month.  Is there anyway you could send me an example pic?
0 Kudos
Message 3 of 5
(3,933 Views)
There's various ways you can do this as far as exact implementation. You will need to use something to identify which control you're dealing with. Attached is one way that uses the control's label as a lookup. You could, for example, use a default caption instead to make it more apparent to the user which control they're specifying to change.
0 Kudos
Message 4 of 5
(3,922 Views)
Excellent!  Thank you very much!
0 Kudos
Message 5 of 5
(3,917 Views)