Use
Controls[] Property to get the array of references to the controls and indicators on the LabVIEW pane.
Below is a LabVIEW simple code example to do it.
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project.
To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW block diagram.