LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Given the name of a cluster as a string create a property nodee

I select the name of a cluster from a text ring. Given the name of a cluster from the RingText.Text property of the ring, how do I generate a property node or access controls in the cluster? 
Thank you. 

Girish

0 Kudos
Message 1 of 5
(623 Views)

Hi Girish,

 


@girish53 wrote:

I select the name of a cluster from a text ring. Given the name of a cluster from the RingText.Text property of the ring, how do I generate a property node or access controls in the cluster?


You need to:

  • get the references of all frontpanel elements
  • search the reference of your cluster by comparing the "Label" property with your string
  • using the reference of the cluster you get access to the cluster elements
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(584 Views)

Is there a way to create an array of references of the desired clusters? Do I have to create a cluster consisting of label and reference, and create an array from the new cluster? 

Thank you. 

Girish

0 Kudos
Message 3 of 5
(559 Views)

Hi Girish,

 


@girish53 wrote:

Is there a way to create an array of references of the desired clusters?


Use a BuildArray node to build your array of references…

 


@girish53 wrote:

Do I have to create a cluster consisting of label and reference, and create an array from the new cluster?


I don't understand this question!

What is this "new cluster of label and reference" used for?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(554 Views)

OK. I got it. From the reference access the label property and match it with the desired name. 

Thank you. 

Girish

0 Kudos
Message 5 of 5
(547 Views)