Skip navigation

Community

Currently Being Moderated

Display Current Time on a LabVIEW Chart with Absolute Time Setting

VERSION 7  Click to view document history
Created on: Nov 16, 2009 12:55 PM by A_Person - Last Modified:  Feb 7, 2013 4:31 PM by thibber

Overview

This document demonstrates how to add timing information so a chart displays the correct time.

 

Description

As discussed in KnowledgeBase 3E6I65K7: Displaying Current Time on a LabVIEW Chart, displaying Absolute Time on a Chart with no timing information displays the starting time and date as 6:00pm 12/31/1903.  The purpose of this example is to illustrate a few methods for displaying the correct timing information on a LabVIEW chart.

 

Method 1 involves setting the correct timing information in a chart's property node so that the x axis scales properly.  The multiplier will be set to the time between samples and the offset will be set to the time of the initial sample, as seen below.

Absolute Time Chart-BD.png

 

Method 2 involves setting this timing data into a waveform data type, which will scale the chart automatically when it is set as an input.  The actual values being set are similar, but they are packaged into the properties of the waveform itself rather than the chart, as seen below.

Absolute Time Chart-BD 2.png

Steps to Implement or Execute Code

Method 1

  1. Download Absolute Time Chart-8.0.vi
  2. Run the code.  To see different Samples per Second reflected in the waveform, stop the VI and restart it.

 

Method 2

  1. Download Absolute Time Chart 2-8.0.vi
  2. Run the code.  To see different Samples per Second reflected in the waveform, stop the VI and restart it.

 

Requirements

Software

LabVIEW 8.0 or later

 

Additional Images

Absolute Time Chart-FP.png

 

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Attachments:
Comments (2)