05-18-2015 06:03 PM
I am trying to make a chart of temperature values with absolute time. First, the timing seems to be a little off and second, I would like to display an hour of data and then have it write over itself so it is always displaying the last hour of data. It would be nice to be able to scroll through a day or two of data, but not neccessary. I have attached my code from Labview 2010. Could you please help me modify my code to do this? Thank you in advance for your help.
Solved! Go to Solution.
05-18-2015 10:41 PM
05-18-2015 11:24 PM
Take a look at chart properties to see the modes available.
05-19-2015 09:38 AM
Thank you for your response.
The absolute time appears as the X-axis and starts at the correct time, however if I let it plot for a minute or so it plots into the future (it is 8:30:32 and the new value shows up at 8:32:44).
The range of the X-axis is about one minute and I would like the user to programatically change it to an hour, 4 hours, etc..
05-19-2015 09:47 AM
Hi danjneff,
The absolute time appears as the X-axis and starts at the correct time, however if I let it plot for a minute or so it plots into the future
Well, you shouldn't change the start time of the X axis with each iteration…
The range of the X-axis is about one minute and I would like the user to programatically change it to an hour, 4 hours, etc..
Two options:
- use a large chart history and limit the range of the X axis to your time window
- don't use a chart, use a graph instead…
05-19-2015 10:09 AM
Thank you GerdW I moved the properties out of the loop so it doesn't reset the start time at each iteration and it works a lot better. However I have run into a new issue, how do I make it clear the chart history each time I start the program?
I am pretty new with LabVIEW so don't understand your answer to the x-axis question. Would it be easier for me to use a graph?
05-19-2015 10:13 AM
Hi danjneff,
how do I make it clear the chart history each time I start the program?
Use the history property node.
This is explained in an example VI to be found in the example finder…
I am pretty new with LabVIEW so don't understand your answer to the x-axis question
Again: as you are new to labVIEW you should take all those FREE online courses offered by NI on their website!
Would it be easier for me to use a graph?
Easier: not really.
Getting better results: yes.
05-19-2015 10:32 AM
Thank you GerdW.
The history node works great!
Can you point me to a graph example similar to what I am trying to do?