04-21-2014 11:58 AM
Hello All!
I'm wondering if I can convert array data to cluster the way it shows on the front panel.
Thanks in advanced!
04-21-2014 12:00 PM
04-21-2014 12:01 PM - edited 04-21-2014 12:09 PM
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...)
04-21-2014 12:05 PM
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!
04-21-2014 12:08 PM - edited 04-21-2014 12:41 PM
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
04-21-2014 12:11 PM
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.
04-21-2014 12:16 PM
@ 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..
04-21-2014 12:34 PM - edited 04-21-2014 12:37 PM
@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 🐵
04-21-2014 12:56 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-21-2014 01:01 PM
@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"??? 😄