Hello NI Community,
I would like to store 6 elements from 2D array in a 1D column vector. Any suggestions?
Thanks in advance!
Solved! Go to Solution.
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.
Thanks for your reply. I have attached the LabVIEW Code, so you can see how it should look like.
Use Array Subset, followed by Reshape Array. No loops needed.You'll also need a transpose.