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.

Example Code

Programmatically Selecting Multiple Y-Axis with Property Nodes 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

Overview

This code shows how to programmatically select which plot corresponds to which Y-Axis.

 

Description

This code plots random values between 0-1 on one plot and random values between 0-10 on another plot on the same XY-Graph. It uses two Y-scales and property nodes determine which plot corresponds to which scale.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the VI.
  2. Run the VI
  3. Play with the scale bar and observe how the scale changes

Additional Information or References

VI Block Diagram

AxisScaling.PNG

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

 

Applications Engineer
National Instruments

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

Comments
Bill_in_Detroit
Member
Member
on

A simple example demonstrating the use of some of the many properties of graph objects.  This example will save you time reading and jumping through multiple interconnected "help" links when all you want to know is how are these properties used?

GCentral