LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array to Cluster

Hello All!

I'm wondering if I can convert array data to cluster the way it shows on the front panel.

 

Thanks in advanced!

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 10
(3,747 Views)
0 Kudos
Message 2 of 10
(3,743 Views)

No, because the sizes don't match. You array has many elements and your cluster has only four elements. The cluster size cannot be changed dynamically at run time.

 

If you only want the first four elements, use "array to cluster" and configure the cluster size of the function to four elements (right-click...)

 

 

0 Kudos
Message 3 of 10
(3,739 Views)

altenbach,

Thanks for the quick response. I actually want all available data (825 points) to be converted but it sounds like it can't be done?

 

Thanks!

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 4 of 10
(3,732 Views)

KowdTek wrote:

Thanks for the quick response. I actually want all available data (825 points) to be converted but it sounds like it can't be done?


That does not seem very useful?

 

Of course you can do it, simply create a cluster with 825 elements and configure array to cluster for 825 element.* Does not seem to be very sane, though. Large amouts of data of the same type as much more easily handled by arrays.

 

Why would you want to convert them to a cluster????

 

* Edit: max cluster size is 256 elements

0 Kudos
Message 5 of 10
(3,728 Views)

According to the help document I referenced, the max cluster size for Array to Cluster is 256.

 

But yeah, having a cluster that big would be pretty crazy.

Message 6 of 10
(3,717 Views)

@ altenbach,

yes Sir!! i would want to convert that array to cluster..

 

@ darren,

I've checked  the max and found out that I can only do 256..

 

I'll see if there's any other way to do this.

 

Thanks much..

 

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 7 of 10
(3,713 Views)

@KowdTek wrote:

@ altenbach,

yes Sir!! i would want to convert that array to cluster..


Sure you do, but why???? I cannot think of a single reason to complicate the code like that!

 

Do you want to win a gold medal in the Rube Goldberg competition? 😄

 

Tell us what perceived problem you want to solve with all that and we will show you a better alternative. 😉

 

(sorry, I forgot about the cluster size limit. Maybe you want to do a cluster of clusters, each with 256 element 🐵

0 Kudos
Message 8 of 10
(3,700 Views)

I'm guessing that they aren't named either, just one giant unbundle and you are forced to count the number of items from the top.

0 Kudos
Message 9 of 10
(3,684 Views)

@Hooovahh wrote:

I'm guessing that they aren't named either, just one giant unbundle and you are forced to count the number of items from the top.


 

You mean this might just be a preparation for the "array-to-cluster-to-unbundle dance"??? 😄

0 Kudos
Message 10 of 10
(3,676 Views)