LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
FTI_Newton

Cluster elements bundled in cluster.

Status: New

 

When you create a reference to a cluster, the "Controls[]" property returns an array of all the control elements in the cluster.

I suggest a mechanism for returning a cluster of references, with the name of each reference matching the name of the control in the orginal cluster, and maintaining order.

This is necessarily a strict type and only determinable at edit, since you couldn't predetermine at runtime what the elements were. Passing in the incorrect cluster reference type, you'd return an error. 

 

Granted it's only a shortcut for bundling it all up ourselves, and there are caveats and gotchas that will go along with it, but it seems natural to be able to use a reference at edit time and be able to extract references to the elements by name. Does it screw everything up if the original  cluster is changed? Perhaps, but it would anyway using the array.

cluster reference suggestion

1 Comment
PaulG.
Active Participant

Unless I'm missing something I find it counterintuitive and tedious that I still have to keep track of the order of my controls in a cluster by number . It would be so much easier if I could get these references by name. This is an idea who's time has come. Kudos.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.