LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining different sized clusters

Hello,

 It appears that when creating a cluster, the elements must all be of the same size. I have two clusters of differing size that I would eventually like to combine into one, but I cannot simply wire both of them to the terminals of a bundle. I can get around this issue but unbundling each cluster and then putting each element of both clusters into a single larger bundle, but this is extremely tedious. Both clusters have several elements and combining them in this manner becomes an inconvenience. Is there a better way to do something like this?

Thanks

0 Kudos
Message 1 of 4
(3,534 Views)

A cluster can contain another cluster as one of its elements.

 

What are you really trying to do?  What determined the current structure of each of your clusters?  Is there a logical correlation to all of the datain that they belong together?

 

Attached a VI that contains the various clusters that you are trying to put together.

0 Kudos
Message 2 of 4
(3,530 Views)

Dk1 wrote:

 It appears that when creating a cluster, the elements must all be of the same size. I have two clusters of differing size that I would eventually like to combine into one, but I cannot simply wire both of them to the terminals of a bundle. I can get around this issue but unbundling each cluster and then putting each element of both clusters into a single larger bundle, but this is extremely tedious. Both clusters have several elements and combining them in this manner becomes an inconvenience. Is there a better way to do something like this?


 

  • The various elements of a cluster can differ in size (e.g. one element could be an integer array with 3 elements and another element could be a DBL array with 6 elements).
  • As Ravens already said, you could create a new cluster containing both clusters by simply wiring them to a bundle operation.

Obviously, something is wrong with your description, so it would really help if you could attach a small VI containing your two clusters and explain what you tried, what you get, and what you want instead.

 

0 Kudos
Message 3 of 4
(3,523 Views)

Are you accidentally using teh Build Array function? It looks similar to the Bundle function, and would explain why bundling two different clusters is resulting in broken code.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 4
(3,521 Views)