LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we create front pannel's references programatically ?

Does LabVIEW allows us to create the front pannels references programatically ? I know that we can use Front Panel Controls Property, from Vi server, but this property gives me all the references. I want to generate the references of some few front pannel's ojbects.
0 Kudos
Message 1 of 2
(2,789 Views)
Unless you create a reference manually from the control the only way to get the reference is to use the front panel controls property AFAIK, however - extracting the reference to a specific control from that array is easy. If you know the index just wire the array to an index array function and give it that index...if you only know the label of the control read the label.text property of the references, search for the index of the name...and wire that index to an index array function with the control references array as input - voila, you have the specific reference you needed.

The retrieval of the reference array and the name array may be effective to only do once and then keep them in shift registers. If you make a functional global that take a name as inpu
t and give out the reference; you can access them globally. Add a VI name to the search input and you can have the functional global serve references the controls of multiple panels.
Message 2 of 2
(2,789 Views)