LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Properties of Controls from Different Type Definitions

I have a set of type defined clusters that are filled with all different data.  I want to go through an array of these different type defined clusters to get properties of their controls.  

 

The best method I could come up with was to get the type definition path, open it, get the front panel controls, get the controls in the cluster, and finally get the cluster element properties. 

 

This seems cumbersome and slow.  Is there a better way to do this?  

 

BrittonB_0-1605030953088.png

 

0 Kudos
Message 1 of 3
(185 Views)

The only properties that you can extract directly from the variants are the Label, Data type, and Data value.

Note: In your code it would be advisable to close the VI ref in the loop.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(182 Views)

Maybe this would suit you.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 3
(169 Views)