LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for a fast way to convert cluster array to N arrays

Solved!
Go to solution
Highlighted

Hi all,

  I am trying to feed a cluster array into Mathscript but I find that the name of each element in the cluster must satisfy some rules so to avoid the compile error. I have an array fo cluster containing 3 clusters, each cluster have 4 elements (named "initial speed [m/s]", "acceleration", "initial position [m]", "time [us]"). I need to break down the cluster array into 4 arrays each contains all elements for "initial speed [m/s]", "acceleration", "initial position [m]" and "time [us]" respectively.


 For example,

array 1 contains 4 elements for "initial speed [m/s]",

array 2 contains 4 elements for "acceleration",

array 3 contains 4 elements for "initial position [m]",

array 4 contains 4 elements for "time [us]"

 

is that any easy way to achieve that?

0 Kudos
Message 1 of 3
(1,141 Views)
Solution
Accepted by topic author dragondriver
Give array of cluster to for loop-> unbundle each of them, build array by taking all the four values.
Thanks
uday
0 Kudos
Message 2 of 3
(1,118 Views)

@udka wrote:
Give array of cluster to for loop-> unbundle each of them, build array by taking all the four values.

It seems that I don't even have to use the loop index, just unbundle the array of cluster in the loop works. Thanks.

0 Kudos
Message 3 of 3
(1,112 Views)