ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question with array manipulation-PLEASE HELP

Hello:
 
I have a question about array manipulation, I have a 1-D array of clusters of 4 elements.  I am trying to take two clusters at a time from that array and build a 2-D array.  This is probably trivial, but I am going nuts trying to get it to work.  Any help would be appreciated.
 
JC
0 Kudos
Message 1 of 4
(2,944 Views)
I'm not 100% sure what your asking for, but if you want to convert a 1D array to a 2D array (of the same type) then you can use the reshape array function.
Message 2 of 4
(2,936 Views)
I have labview 7.1 only, cant open newer version.  But that reshape array function looks good, by wiring arraysize/2 to the second dimention input of reshape array makes it dynamic, think it should do the trick.  Learned something new today, I was going to do this with a nested for loops, but this is obviously superior, thanks again.
0 Kudos
Message 4 of 4
(2,926 Views)