11-16-2009 12:38 PM
Can you recommend a better way to unbundle the cluster shown below? There is a boolean data type in the cluster along with the doubles so converting
it directly to an array does not work. Is there some way I can unbundle a certain number of the cluster elements and convert those directly to an array?
For instance, cluster elements 0 through 30 ?
Thanks,
Dave
11-16-2009 12:46 PM
Use this function
Cluster To Array Function
Owning Palette: Cluster, Class, & Variant VIs and Functions
It will take you cluster and transfort into a array
11-16-2009 12:48 PM - edited 11-16-2009 12:53 PM
If you want to have only the first 30 elements as dbl, can you put into a cluster inside the mains cluster?
11-16-2009 12:50 PM - edited 11-16-2009 12:50 PM
Since you have that pesky boolean, try this (using flatten to string).
11-16-2009 01:03 PM - edited 11-16-2009 01:04 PM
I like Darren's solution (kudos ), and it can be made to work with your original method.
However, if you can change your original cluster into a cluster of clusters, and put the "pesky boolean" in its own cluster, then Cluster to Array works fine...
11-16-2009 01:04 PM
Can you change the boolean to a 0, 1 numeric and include it in the Cluster? Then Cluster to Array. Just index it out or use Split array.
Lynn
11-16-2009 01:06 PM - edited 11-16-2009 01:08 PM
11-16-2009 01:10 PM
11-16-2009 01:22 PM
11-16-2009 01:28 PM
Thank you all! I am going to go with the cluster inside a cluster idea but I still appreciate seeing yours Darin. It's great to see these perspectives on solving LV problems.
Regards,
Dave