Example Code

Get Control References to All Front Panel Controls and Indicators

Code and Documents

Attachment

The Get All Control References VI recursively determines control references for all objects on the front panel of another VI. This VI takes a front panel reference input and returns an array of references to all controls on that front panel. This VI returns references to all elements of a cluster, including elements in embedded clusters. This VI also returns the element types of arrays embedded in cluster elements.

The Demo Get All Control Refs VI contains a cluster with embedded clusters. Each cluster contains Boolean controls. This VI uses the Get All Control References VI to set all Booleans inside the cluster to TRUE.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
jj2
NI Employee (retired)
on

It would be useful if it also got control references on tab controls as shown below . I dont see an option to upload labview VI which would make this useful for others image.png

Contributors