Example Code

Change and Invert Y Scale Programmatically in 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 code allows to programmatically revert the maximum and minimum values of the Y scale in a graph.

 

Description

The intent of this code is to programmatically not only revert the maximum and minimum values of a graph but will also show how we can modify programmatically those values and the increment of the scale.

 

Requirements

LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Set the desired values for the Y scale in the graph
  3. Use the Flipped control to swap the order
  4. Use the Stop button to finish execution

 

Additional Information or References

 

 Snippet.png

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

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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