LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert from m x n array to array of clusters

Solved!
Go to solution

I have an M x 4 array of doubles:

Var1

Var2

Var3

Var4

1

2

3

4

5

6

7

8

.

.

 

.

.

 

.

.

 

.

.

 

 

Want to convert it to:

 

myNewArray (1D array of)

                myNewCluster (cluster of 1 element)

                                myNewSmallerArray (1D array of)

                                                myNewSmallerCluster (cluster of 4 elements)

                                                                Var1 (double)  Var2 (double)  Var3 (double)   Var4 (double)

 

by doing this I want to then index through each row. The attached vi has the m x n array and the format of the output

0 Kudos
Message 1 of 3
(85 Views)
Solution
Accepted by topic author kathyleak

I assume this directly relates to your previous question, right?

 

You did not attach any of your type definitions (there are two!), so I had to disconnect them. You need to substitute the typedefs again.

 

Try this as general possibility:

 

altenbach_0-1634102889176.png

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2 of 3
(68 Views)

You are in fact brilliant! I had disappeared down a rabbit hole building a manually indexing bit of code instead of using the auto indexing. Me thinks me and Rube Goldberg have a lot in common.

0 Kudos
Message 3 of 3
(36 Views)