LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why my 2x8 array can't change to 1x16 matrix?

Hi all.

 

I have a 2x8 array like this picture want to change to 1x16 matrix

 

I use Array to Matrix .vi  then use Resize Matrix .vi

 

but my 1x16matrix appear zero. like following picture

 

How can i do?

 

11211.png

11212.png

0 Kudos
Message 1 of 4
(2,351 Views)

Instead of doing this you can right click the build array and enable the concatenate option so that you will get a 1 x 16 array (1 D array) directly.

-----

The best solution is the one you find it by yourself
Message 2 of 4
(2,346 Views)

The other option is to use the Reshape Array.

 

With the reshape matrix, from the LabVIEW help:


If you increase the row or column dimensions of matrix, the function returns an invalid operation value at each exterior location.


 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,340 Views)

If you right click on the build array function and select "Concatenate Inputs", the build array function will append the second 1x8 array to the end of the first 1x8 array. This would give you the desired 1x16 array.

 

1x8 + 1x8 to 1x16 array BD.jpg

 

1x8 + 1x8 to 1x16 array FP.jpg

0 Kudos
Message 4 of 4
(2,338 Views)