Example Code

Plotting on a Waveform Chart Starting from a Relative Time of Zero 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 shows how to use two properties in a property node to plot a 1-D Array of Doubles to plot values starting from a relative time of 0 seconds.

 

Description

One chart appends values to the existing chart history every time the VI is run. The second chart clears the chart history so that it starts at time 0 every time the VI is run.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Specify the sample rate for the signal generation.
2. Run VI.
3. Execute same VI multiple times and observe differences between graphs

 

Additional Information or Resources

 

 2012.png

 

 

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