Showing results for 
Search instead for 
Did you mean: 

Store elements from a 2D array in a 1D column vector

Go to solution

Hello NI Community,

I would like to store 6 elements from 2D array in a 1D column vector. Any suggestions?


Thanks in advance!

Best regards,


Download All
0 Kudos
Message 1 of 5
  • How many elements does the 2D array have, which six do you want to pick, and how are they arranged?
  • LabVIEW has just 1D arrays, there is no distinction between row and column vectors.
  • Your image makes absolutely no sense (uninitialized shift registers, long wait in inner loop, etc. etc.)

Please attach an actual VI, not pictures. Fill the array control with typical default values (enter, make default, save VI)  and tell us how the result should look like.


If the 2D array has exactly 6 elements (e.g. 2x3 or 3x2) and you want a 6 element 1D array in the same memory order, all you need is "reshape array". Still, there are millions of different interpretations of your description, so please clarify.

LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2 of 5

Thanks for your reply. I have attached the LabVIEW Code, so you can see how it should look like.

0 Kudos
Message 3 of 5
Accepted by topic author MarcLee

Use Array Subset, followed by Reshape Array.  No loops needed.You'll also need a transpose.



Message 4 of 5

Thousand thanks!!!

0 Kudos
Message 5 of 5