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: 

Loop Controls[] of Cluster Inside Array without TypeDef Reference

Solved!
Go to solution

i want to loop the Controls[] of a Cluster inside an Array.

 

i got it to work like this:

PaulPascher_0-1632130005880.png

is it possible to loop the Controls without a separate reference/Control of my Cluster (in Sample called IconData)?

 

without this castido not get the Controls[] Property wich makes sense, since not every arraymust beof type Cluster but is there some Generic cast to Cluster wich would allow this code to work for every Array<Cluster>?

0 Kudos
Message 1 of 2
(742 Views)
Solution
Accepted by topic author PaulPascher

Sure. One general way is to drop a Class Specifier Constant from the Application Control palette, then click on the constant and navigate through the hierarchy to Cluster. Then, wire the constant to the Cast function.

pincpanter_0-1632131640625.png

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 2
(731 Views)