LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1 Week Time Scale on Temperature Graphs?

I want to display one week of temperature data on the x axis of a graph. I also want to current time/date to be displayed as the x max with one week earlier as the x min.
0 Kudos
Message 1 of 6
(2,926 Views)
With a property node, you can set Xmin and Xmax. Use Get Date/time in Seconds to get the current time, write that to Xmax, subtract number of seconds in a week and wire that to Xmin. You also need to set your X scale formatting to absolute time.
Message 2 of 6
(2,926 Views)
Setting up property nodes worked, however the graph no longer displays the data. The digital display works but not the visual line on the graph. The y scale is correct. When I added the property nodes the data would not display when I took the away the nodes it worked fine except the time is not correct.

This is a link to the site I am posting the display.

http://engr.calvin.edu/courses/engr382/temperatures.htm
0 Kudos
Message 3 of 6
(2,926 Views)
It's hard to say just by looking at the picture of a front panel. Where are you getting the data to graph? Is this reql time or data from a file? How are you writing data to the graph? Is it just a numeric array or is it a waveform data type? A waveform data type has time information imbedded into it so just changing the scale will not work. HCan you post an example of your VI along with some data?
0 Kudos
Message 4 of 6
(2,926 Views)
This is data from a field point TC 120 module. Should I be using a different type of waveform chart/graph
0 Kudos
Message 5 of 6
(2,926 Views)
I think I understand what you're trying to do now. You have a strip chart and you want the right side to show the latest acquisition and you want to have 1 week worth of history that can be displayed? If that's the case, then you should look at the shipping example called Real-time Chart. You will have to increase the chart history length to be long enough to include all of the samples.
0 Kudos
Message 6 of 6
(2,926 Views)