ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reversing a 2D array

Hi,
 
How can you do this
 
| 1 2 3 4 |                    
| 1 2 3 4 |   =====>
| 1 2 3 4 |
| 1 2 3 4 |
0 Kudos
Message 1 of 4
(3,011 Views)
0 Kudos
Message 2 of 4
(3,003 Views)
Hi,
 
How can you do this
Im reading 4 values at a time and want to store them in a 2 D array
                                | 1 1 1 1 |                  |   4 4 4 4 |  
                                | 2 2 2 2 |   =====>  |  3  3 3 3 |
                                | 3 3 3 3 |                  |   2 2 2 2 |
                                | 4 4 4 4 |                  |   1 1 1 1 |
 
 
Here is my VI.
 
 
0 Kudos
Message 3 of 4
(3,003 Views)
Your example is not very good, because all columns are the same. We do not know if the rows got reversed or not 😉
 
A simple example to only reverse each column is attached, there are many ways to do this.
0 Kudos
Message 4 of 4
(2,995 Views)