Virus scan in progress. Please wait to download attachments.
This document demonstrates how to add timing information so a chart displays the correct time.
Description As discussed in KnowledgeBase 326F9HIP: Displaying the Current Time in a Graph/Chart, displaying Absolute Time on a Chart with no timing information displays the starting time and date as 1:00am 1/1/1904. The purpose of this example is to illustrate a two 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.
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.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Select which mode use 2. Set Samples for Second 3. Run VI
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Alex Person NI-RIO Product Support Engineer National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.