12-01-2014 07:46 AM
I have a user defined control that is a cluster. I put this into an array. How do you access the property node for a cluster element that is in the control that is in the array? I want to disable one of the cluster elements programatically. The enable/disable state will be the same for the single cluster element for entries.
Any ideas? I've been tinkering with property nodes and references without much luck.
12-01-2014 07:49 AM
Hi Jim,
get the reference of the array. With this reference you use a property node to read the reference of an array element - your cluster.
With the array element reference you can get the references of all items in the cluster…
12-01-2014 07:57 AM
Thanks. This does it.
12-01-2014 08:01 AM
@Jim12345678 wrote:
The enable/disable state will be the same for the single cluster element for entries.
This is good because it is more or less impossible to have it not be this way. Remember an array will contain scalar data, and each element in the array must be of the same type, and property. Value is the only thing that can vary between elements in an array.
This means if you have an array of cluster elements, and you want to disable one element of the cluster, it will disable that one element of the cluster in each cluster index in the array.
You can disable each element of the cluster, manually by right click the control going to Advanced >> Enable State. This can be done programatically as GerdW mentioned.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord