LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get "description" property of a control if control is an element of cluster?

Solved!
Go to solution

Hi, dear All

 

LV provides the ability to operate with "description" property of individual VI's control. Using property nodes: VI reference > Front Panel propert > Controls[] property > Description.

 

Unfortunately, I didn't find a way to set or get a description of a control if it is an element of cluster =(

 

Could anyone suggest idea?

 

Thanx in advance,

Max

 

0 Kudos
Message 1 of 5
(3,258 Views)
Solution
Accepted by topic author maksya

interesting problem, I tried it out, have a look.

 

yours

 

RZM

Message 2 of 5
(3,250 Views)

If you just want to get at a single widget inside a cluster you can go to the FP and right click on the INDVIDUAL control your are interested in and do a create property node for THAT element.

 

If you want to get at element in a flat cluster see the example posted by RZM.

 

If you want to programatically naviage into a cluster of un-known structure, then my Nugget on Exploiting Control References should be able to give you some ideas.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 5
(3,238 Views)
If you don't have time to read Ben's tome (and you should read it), clusters have a Controls[] property which returns references to all the controls contained in the cluster.  You can find your control by its Label property and then get the Description property.
Message 4 of 5
(3,213 Views)

bla457645, this is the quickest and most effective answer I have ever get 😃 Thank you very much.

 

Ben, very helpful case study. I've learned many interesting things. Thank you.

0 Kudos
Message 5 of 5
(3,187 Views)