LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Rotate 2D Array

Hello, I want to build a LV to random rotote 2D Array,
I have 3 Input array,
Array X: 1, 2,3
Array Y: 11,12,13
Array Z: 21, 22, 23

the result should be
1, 11, 21
1, 11, 22
1, 11, 23
1, 12, 21
1, 12, 22
1, 12, 23
1, 13, 21
1, 13, 22
1, 13, 23
......
3, 13, 23

And It does not repeat the same array

I think it for a few day

Please Help Me .

Thank You!!
0 Kudos
Message 1 of 3
(4,119 Views)
Hi Heart...,

it's pretty easy once you're familiar with auto-indexing of arrays Smiley Wink
First you build a 1D array mae of 3 elements from X,Y and Z. Then you only have to add those vectors to your resulting 2D array.
The innermost loop already gives you a 2D array which is appended to the 2D-array contained in the shift register...

Message Edited by GerdW on 08-16-2007 03:29 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(4,103 Views)
Thank You!
Smiley Happy
0 Kudos
Message 3 of 3
(4,062 Views)