Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Programmatically Selecting Multiple Y-Axis with Property Nodes

by Member HollyBerry on ‎11-05-2013 07:13 PM

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.

Steps to Implement or Execute Code

  1. Create two arrays of random numbers using a for loop.
  2. Build these arrays into one array and input this 2D array into a Waveform Graph.
  3. Create a property node for the Waveform Graph and expand it to show 5 properties.
  4. Set these properties to XScale.Muptiplier, ActPlot, Plot.YScaleInx, ActPlot, and Plot.YScaleInx.
  5. Create a control to adjust the X-Axis Scaling Factor.
  6. Wire the other properties to constants corresponding to the indexes of the Plots and Y-Scales that you would like to pair. 

Requirements

Software

AxisScaling13.vi was written in LabVIEW 2013.

AxisScaling85.vi was written in LabVIEW 8.6.

Comments
Member Bill_in_Detroit
Member

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?