From Thursday, May 23rd (05:00 PM CDT) through Friday, April 24th (1:30 AM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

reverse 2d array

Go to solution



I am trying to design a basic array with certain functionality. In the VI below i have a 2d array with four columns and four rows. I want the array to display the first first row on a indicator on the front panel. Then for the 2nd row it would show in reverse then for third it would show normally.

For example it would go 1,2,3,4,4,3,2,1,1,2,3,4 on the indicator.


My original plan was to have a true/false case structure where if the array row was odd it would display left to right but it the row was even it would display right to left.


Any help would be appreciated


0 Kudos
Message 1 of 2
Accepted by Craig1988



The case structure should be inside the outer loop so you can reverse alternate rows.  Here is an image to get you going.  The other case is "0" and is wired straight through.




Alternating array.png

Message 2 of 2