LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Nx15 x1000 3D array to 15by1000*N 2D array

A while loop generates nxm array in each iteration. I want to save the nxm array into one array of n*ixm. Please help me.
0 Kudos
Message 1 of 3
(2,545 Views)
Use Build Array function and auto-indexing.
Look example.
0 Kudos
Message 2 of 3
(2,545 Views)
If I understand your issue, in a loop that executes i times, you are collecting a 2D array consisting of N rows and 15 columns. What you want out of the loop is a 2D array with N rows and 15*i columns. Yes?

If so all you have to do is transpose the matrix you're collecting before appending it to all the data you have collected already. Once all the acquisitions are complete, transpose the resulting array again and you'r done.

See attached, example...

Mike...

PS: If I have the rows and columns backwards, the same technique will still work, but don't do the transposing...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,545 Views)