From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(933 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
(930 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
(917 Views)