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 2d array

Solved!
Go to solution

Hello

 

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

Craig

0 Kudos
Message 1 of 2
(3,466 Views)
Solution
Accepted by topic author Craig1988

Craig,

 

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.

 

Lynn

 

Alternating array.png

Message 2 of 2
(3,458 Views)