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.
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.
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.
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?
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.