11-15-2018 03:31 AM
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,
MarcLee
Solved! Go to Solution.
11-15-2018 04:03 AM - edited 11-15-2018 04:04 AM
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.
11-15-2018 04:52 AM
Thanks for your reply. I have attached the LabVIEW Code, so you can see how it should look like.
11-15-2018 08:03 AM - edited 11-15-2018 08:03 AM
Use Array Subset, followed by Reshape Array. No loops needed.You'll also need a transpose.
11-15-2018 08:38 AM
Thousand thanks!!!