LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Historical Plots by realtime

Hi,
 
I try to plot data on a graph with realtime scale on x-axis, I use absolute time format, it appears that the time and date are always start at 6:00 in 12/31/1903. I think I should add the different time between this time and realtime to the time scale, but I do not know how to do that. Please help, thanks.
 
David
0 Kudos
Message 1 of 3
(2,783 Views)

A chart or graph does not go off and read the current time. The start time is something that you have to provide to the chart/graph. If you are using a DAQ board for the acquisition, you should be using a waveform data type as that contains a timestamp. If you are not using a DAQ board and just have a y array, you can create a waveform data type with the Build Waveform function and wire the Get Date/Time in Seconds to the t0 input. When you use a waveform data type, make sure you right click on the graph and uncheck 'Ignore Time Stamp'. The other way is to get the current time and wire that to the Xscale.Offset property of the chart/graph.

Message Edited by Dennis Knutson on 02-07-2007 02:09 PM

0 Kudos
Message 2 of 3
(2,778 Views)
Hi Dennis,
 
Thank you for your help. It works great.
 
David
0 Kudos
Message 3 of 3
(2,763 Views)