Display Time and Date on a Graph or Chart in LabVIEW

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to correspond data with timestamps created from the current time and date. I want my data and the timestamps to be displayed on a waveform graph, waveform chart, or XY graph in LabVIEW. How do I create timestamps for use with my graph or chart?

Solution

The Get Date/Time In Seconds VI can be used to acquire a timestamp using the current time and date of the system running LabVIEW. The implementation of this VI depends on whether a waveform chart, waveform graph, or XY graph is used to display the data and timestamp.

The VI Snippet below illustrates the different ways of implementing the Get Date/Time In Seconds VI.



The timestamp created by the Get Date/Time In Seconds VI is represented as the number of seconds elapsed since 12:00 a.m., Friday, January 1st, 1904, Universal Time.  The X-axis displaying these timestamp values must also be configured to use the same convention. Perform the following steps to configure this setting:
  1. Right-click the x-axis and select Formatting from the shortcut menu.
  2. In the dialog box that appears, set the format to Absolute time, then click the OK button.
Timestamps created using the Get Date/Time In Seconds VI should now be properly displayed on the X-axis. Date can now be displayed on the graph or chart along with corresponding timestamps.

WAS THIS ARTICLE HELPFUL?

Not Helpful