ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with cluster array

Hello.
 
I'm using the "Bundle" function to group several variables of different types into a cluster. This cluster needs to be grouped with other similar clusters into a cluster array to be used in the "Flatten to XML" function.
 
My problem occurs when I try to create the array of clusters using clusters of different sizes (one with 9 elements and another with 12 elements). I'm using the "Build Cluster Array" function for that, and it gives me a wiring type error, as the attached snapshot shows.
 
Does anybody have any suggestions on how to solve this problem?
 
Thanks!
0 Kudos
Message 1 of 6
(3,436 Views)
You can't bundle different clusters into a cluster array. They must be identical.Smiley Happy
PaulG.
Retired
0 Kudos
Message 2 of 6
(3,422 Views)
All elements in an array must be of identical type, only the values can vary.
 
Maybe you can bundle your clusters instead?
0 Kudos
Message 3 of 6
(3,414 Views)

So, how can I do it then?

I just want to send everything to a XML file (using Flatten to XML). This function accepts anything as an input. So, I believe it's just a matter of concatenating all the clusters' bundles, right? But how can I do that? I can't find a "concatenate clusters" funcition...

Thanks a lot for the help!

Regards,

Daniel

0 Kudos
Message 4 of 6
(3,385 Views)
It's called the bundle function. You can wire in separate clusters and output a cluster of clusters.
0 Kudos
Message 5 of 6
(3,382 Views)

Dugh.....!

I'm so stupid... I was already using that function to the other part....Smiley Surprised

It works fine now. Thank you all for the great help.

Best regards,

Daniel

0 Kudos
Message 6 of 6
(3,367 Views)