LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting labels of controls in cluster

Hi,
how do I get all labels of controls in a cluster?
I have several controls in a cluster. I guess this should be doable but I couldn't find any solution.
Message 1 of 4
(3,054 Views)
Create a Property Node from the cluster by right clicking on it and navigate to 'Create>>Property Node'. Right click on the node and navigate to 'Properties>>Controls[]'. This will give you an array of references to all the controls inside the cluster.

You can run this into a For Loop and using another property node set to 'Label.Text', you'll get all the labels.

Image is attached for reference.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 4
(3,054 Views)
I think you have to crate a attribute node of each control. After you
can put them together in a new cluster, if you like. I think you can not
get all lables of the controls of a cluster in one step (I am referring
to LV 5.1.1).

Yves wrote:
> Hi,
> how do I get all labels of controls in a cluster?
> I have several controls in a cluster. I guess this should be doable
> but I couldn't find any solution.
0 Kudos
Message 3 of 4
(3,054 Views)
Yves wrote in message news:<50650000000800000046FE0000-1079395200000@exchange.ni.com>...
> Hi,
> how do I get all labels of controls in a cluster?
> I have several controls in a cluster. I guess this should be doable
> but I couldn't find any solution.

Create a property node for the cluster. Select the 'Controls[]'
property. Wire that output to a For-loop. Inside the For-loop, wire
the terminal to a property node. Select the 'Label.Text' property.

Paul Cardinale
0 Kudos
Message 4 of 4
(3,054 Views)