Example Code

Rotate Intensity Chart

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

 

Overview
This example shows how to rotate a chart of data.

 
Description
It is often desirable to display an Intensity Chart in a manner that allows a user to "overlay" their 2D array of numeric data.  In other words, rows of data in the array (left to right) correspond to rows of points on the chart (left to right).  By default, the Intensity Chart plots a 2D array in a way that seems to have rotated the array 90 degrees counterclockwise, where rows of data in the array (left to right) correspond to columns of points on the chart (bottom to top).  The code in this VI allows the user to return the data 90 degrees clockwise to an "overlay"-style Intensity Chart.

 
Requirements

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Open the VI.
  2. Ensure that both charts have been cleared.
  3. Right-click on the chart and select Data Operations » Clear Chart.
  4. Run the VI.
  5. Clear the charts before running the VI again.

 

Additional Information or References
VI Block Diagram

 5-60.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.