Example Code

Plotting Single Points Using XY-Graph 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 plot single points using an XY-Graph and then uses property nodes to set the graph settings for best visibility.

 

Description

This code accepts two user-input arrays of X and Y points. It then bundles them into a cluster of 2, 1D arrays to be plot on the XY Graph. The user than has the ability to change the property nodes for interpolation and point style. The default properties of this graph do not display this data as points but as an interpolated line.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the VI
  2. Run the VI
  3. Input values into the X-Array and Y-Array
  4. Observe points being plotted on the XY Graph

 

 

Additional Information or References

VI Block Diagram

PlottingPoints.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.