Example Code

Continuously Plot Sampled Data to XY Graph 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

Overview

The example code listed below demonstrates how to plot sampled data on an XY-graph and simulate the behavior of an XY-chart.

 

Description

In the attached VI, data is sampled within a for-loop, stored within a conditional for-loop, and plotted on an XY-graph.

 

Capture.PNG

Requirements

  • LabVIEW 2012 (or compatible).

 

Steps to Implement or Execute Code

  1. Download the attached VI.
  2. Replace Simulated Signal with your own data.
  3. Run the VI.

 

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

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