Example Code

Rotate 2D Array Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This VI rotates a 2D array either clockwise or counterclockwise by 90, 180, or 270 degrees.

 

Description

This is done by iterating the array through a for loop and using the Transpose 2D Array VI.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Select Rotation orientation.
2. Run the VI.
3. Inspect Rotated 2D Array indicator.

 

Additional Information or Resources

 2012.png

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

Regards,
Dan King

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