Example Code

Reverse 2D Array without column number limitation

Code and Documents

Attachment

Overview
This example VI demonstrates a way to reverse a 2D-array of double with any number of columns.

Description

This VI shows a way to reverse a 2D-array of double with any number of columns. The content type of the array can be easily changed. For example, from double to string. So this VI can be used to reverse any other 2-D Array types.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI " Reverse 2D-Array with Free Number of Columns 2012 NIVerified.vi"
  3. Enter a 2D Array
  4. Run the program

 

Additional Information or References
VI Snippet

Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.