LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reverse the set of 2D array

Hello everyone

 

I have 2D array as below , i need to reverse the array by the group of 3 rows 

1 1 1 1 1

2 2 2 2 2

3 3 3 3 3

4 4 4 4 4

5 5 5 5 5

6 6 6 6 6

7 7 7 7 7 

8 8 8 8 8 

9 9 9 9 9

 

So the result shoud be

7 7 7 7 7

8 8 8 8 8

9 9 9 9 9

4 4 4 4 4

5 5 5 5 5

6 6 6 6 6

1 1 1 1 1

2 2 2 2 2

3 3 3 3 3 

 

how can i do? please suggest me thank you!!!

0 Kudos
Message 1 of 6
(3,335 Views)

Hi midori,

 

straight-forward:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(3,331 Views)

Thanks for your help GerdW

 

How can i make the result to 2D array ?

0 Kudos
Message 3 of 6
(3,321 Views)

Hi midori,

 

right-click the BuildArray node and select "concatenate elements"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,319 Views)

This is one of the approach it will convert any number of elements in the array.

 

undefined

 

good luck

-----

The best solution is the one you find it by yourself
Message 5 of 6
(3,308 Views)

It works very well 

 

Thanks a lot !!!!

0 Kudos
Message 6 of 6
(3,304 Views)