LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you unbundle by name the value of a cluster that was passed by a reference?

What I want to do is send a control reference of a cluster down to a sub vi and be able to unbundle it's value by name. I can only use the regular unbundle to get the values of all the controls in the cluster. Is there some trick I am missing?

I know I could individually create references for the controls in my cluster that I am interested in passing down to sub vi's and BUNDLE THOSE as a cluster and then I would have the ability to unbundle the references by name but I just want to make sure I am not missing something before I go that route.

Thanks in advance for the help

--Russ
0 Kudos
Message 1 of 2
(2,965 Views)
I think that this "may" be a bug. The reason I think so is that the Controls[] property of a cluster is an array of refnums to the clusters elements. The Label.Text property of these controls may be used to get the names of these cluster elements. When you have a strict reference to a cluster, the Value property is not a variant, but rather the original cluster. However the cluster elements do not have any Labels. If the refnums in the Controls[] property can be used to get the Labels of the cluster elements then why does the Value property lose them?

Well... it shouldn't lose them!

-Jim
0 Kudos
Message 2 of 2
(2,965 Views)