LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looping through Boolean Reference Cluster

Solved!
Go to solution

clusterRefloop.png

I am trying to loop through a cluster of boolean control references and assign a value to them that comes in from another array. (In the image trying to replace the black circle on the left with the green circle on the right).

 

I tried following the instructions here:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHdmCAG&l=en-US

 

which make sense but I can't figure out how to adapt it for my data type.

  1. Not sure what type of ClassID this is to put in the conditional
  2. Not sure what data type to specify for the "variant to data" to get the value out of the cluster item

 

Thanks for the help!

0 Kudos
Message 1 of 13
(320 Views)

Try this

 

ooth_1-1725459508903.png

 

0 Kudos
Message 2 of 13
(316 Views)

I appreciate the reply!

 

Sorry can you guide me with what you did here:

 

what did you place down on the block diagram first to get that boolean?

 

Also - what should I put in the case structure for Class ID?

 

thanks!

 

EDIT: I see now how to place the boolean item there, application control --> Class Specifier Constant

0 Kudos
Message 3 of 13
(297 Views)

you get it from here

ooth_0-1725460028650.png

 

Message 4 of 13
(290 Views)

Also maybe use this for the case structure

image.png

0 Kudos
Message 5 of 13
(280 Views)

got it, thanks.

 

What about the case selector for classID?

 

"Boolean" turns red.

0 Kudos
Message 6 of 13
(277 Views)
Solution
Accepted by topic author GOB34

If all the elements are of the same type it's easy to convert it to an array.

Yamaeda_0-1725460618196.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 13
(271 Views)

Check my reply above. You replied before I figured out how to do it.

0 Kudos
Message 8 of 13
(270 Views)

Yamaeda's way seems like a better way to do it.

0 Kudos
Message 9 of 13
(268 Views)

Thanks for the suggestion.

 

Unfortunately all the data types are not the same, there is a mix.

0 Kudos
Message 10 of 13
(258 Views)