Skip navigation

Community

Currently Being Moderated

Programmatically Selecting Multiple Y-Axis with Property Nodes

VERSION 2  Click to view document history
Created on: Nov 5, 2013 7:13 PM by HollyBerry - Last Modified:  Nov 6, 2013 11:20 AM by HollyBerry

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.

Attachments:
Comments (1)