LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get control name from cluster in cluster

Hello,

is it possible to get the name of a control which is in two clusters?
to get names from controls in a cluster is no problem. but when this cluster is in a second cluster i only get the cluster name.

markus

0 Kudos
Message 1 of 4
(4,460 Views)

Hi Markus

There is a property controls[] which gives you an array of references. In this array are the references to all controls in the cluster.

So get this references, extract the reference of the inner cluster, get the controls array of the inner cluster and you get the references of the controls which are placed in the inner cluster.

 

Message Edited by becktho on 08-02-2006 12:02 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 4
(4,453 Views)
Hi Markus,

have you tried to get a reference to the inner cluster and using this reference to get the name of the numeric control?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(4,451 Views)
you would use the 'To More Specific Class' to cast the ref of the inner cluster to a cluster-ref, then you can get the contents of that inner cluster


Message 4 of 4
(4,450 Views)