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.