Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot data vs system time in the graph


Hi all,
We have a problem in plotting a graph, wherein we need to plot two datas Vs time. The two datas are commig at regular interval  of 5 seconds.  We need one hour data plot always on the graph all time. The plot should scroll off as new data is appended at the right side of the graph. The right most corner of the x-axis should display the current time(ie current system time) and the left most corner of the graph should display the time one hour back ie:            9:30:10.....................................................10:30:10.

Can any one help us in this regard
LabView Lovers



0 Kudos
Message 1 of 2
(3,751 Views)

Sounds like you would be better served by a chart rather than a graph. With a chart, you can plot data sequentially (either point by point or in chunks) and maintain a history, which corresponds to how much past data is displayed in the chart. You can configure how large your history is by simply right-clicking the chart and selecting "Chart History Length". This way all you have to do on your block diagram is wire the current data value to the chart terminal and all the storing of old data is handled automatically behind the scenes. As far as timing information, use the waveform data type for your data (which includes timing information) instead of regular numerics, and that timing information will be carried through to the chart display.

For more information about charts, I would encourage you to check out some of the examples that ship with LabVIEW. Simply go to Help>>Find Examples and type "charts" into the query on the Search tab.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,740 Views)