Example Code

Update XY Graph With Multiple Plots In Real Time 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 example demonstrates how to add multiple plots of data to an XY graph as the data points are acquired in real time.

 

Description

The example uses the cluster data type for the XY graph. Each cluster data including an x-axis value and a y-axis value is concatenated to build an array. This process is repeated until the iteration number is reached to "Number of Plots". The default control values run a simulated acquisition with 4 separate tasks. Each task acquires 3 separate samples and then moves on to the next task.  

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Configure "Number of Plots" and "Number of Simulated Data Points"
  2. Run VI

 

Additional Information or References

VI Block Diagram

Update XY.png

 

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

Ian K.
Software Developer
Data Ahead AG

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