From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,101 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,097 Views)

Thanks for your help GerdW

 

How can i make the result to 2D array ?

0 Kudos
Message 3 of 6
(3,087 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,085 Views)

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

 

Reverse array.PNG

 

good luck

-----

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

It works very well 

 

Thanks a lot !!!!

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