Example Code

Simple Way To Display Relative Time And Keep The Origin At Zero

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
To demonstrate how to track elapsed time in graph since you run the VI

Description:
One of the most common things we want to do with plotted data is display them against how long it's been since we started. This is normally referred to as Relative Time. Here's a quick way to achieve showing relative time, and keeping the origin of your chart at zero without too much extra coding, while building up your data!
All you need to do is set the multiplier to be corresponding to your loop timing, and Auto-scale continuously.
You can use the Graph Palette zooming tool to view data more closely.

Instructions:
To implement this example:

  1. Run VI

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-01_21-00-34.jpg2017-11-01_21-00-13.jpg

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