11-19-2014 02:16 PM - edited 11-19-2014 02:43 PM
Sorry about the file name. I'll change the version every time I attach it.
11-20-2014 12:32 AM - edited 11-20-2014 12:33 AM
@rhupd wrote:
- How do you know that I'm graphing 4 points/250ms? Is it because I have 4 charts?
Because you add four points per iteration and the loop delay is 250ms, making the loop itereate four times/second.
rhupd wrote:
- Also got rid of 3 of them and put it outside the loop but when it's outside, it isn't executed.
Of course it is executed. Exactly once at the start of the program.
rhupd wrote:
- Why do you get the time 4 times in parallel? Do you expect four different results? Once is enough! You can branch the wire, right? What do you mean by this? 4 times in parallel? Which wire should I branch?
You have four instances of "Get Date/Time in seconds", then you convert all to dbl and wire each ouput to one of the property nodes. All you needs is get the time once, convert it to DBL once, then branch that wire to all places where it is needed. Compare the picture.
11-20-2014 11:46 AM
The x-axis on my first graph only shows one minute at a time which is too small but the other 3 graphs show about 17 minutes which is too big. I still don't understand how to fix this. I tried to right-click on the chart, went to properties and scales and tried changing the minimum and maximum but I can't seem to save the changes. As soon as I press ok, the settings go back to what they were.
Also, why aren't the axes following the system time? When I execute the VI, the time on the left side starts by matching the system but within a few seconds, it's several minutes ahead. I added a note next to the graph. If I'm working with data which I'm getting in real-time, how can the clock go ahead of the system time?
11-20-2014 12:49 PM
Yor first two charts have a history of 500 points while the others have a history of 1024 points. For the same dt, they will retain a different length.
So:
11-20-2014 02:29 PM
I'm going through all your points and I'll post an updated version soon but I need to clarify something before I can go any further: what's dt?
11-20-2014 03:19 PM
@rhupd wrote:
what's dt?
xscale.multipler. i.e. the time increment between adjacent points.
11-21-2014 01:10 PM
Thank you so much altenbach! It's finally doing exactly what I'd like. I'm almost done. Is there a way I could change the dt while the VI is running or do I need to change the number before executing it?
11-21-2014 03:48 PM
dt is a global parameter and applies to the entire chart. If you change it part way through the acquisition, you probably get undesired results.
11-24-2014 01:39 PM
Hi altenbach,
Is it possible for the first point on the x-axis to be stationary? E.g. if the system time is 11am when I execute the VI, can the first point stay at 11am until 30 minutes worth of data has been collected? The x-axis plot on the far right will change with the system time. I made some notes in the file....sorry if it's confusing. I did my best to explain it.
Thanks!
11-24-2014 03:15 PM
If the x-axis is set to autoscale, the first marker will remain at the start time until your run out of history buffer, at which time it will start incrementing to show the time of the oldest point in the buffer.
If you want to see 30 minutes worth of data. You simply need to calculate the required history buffer size based on the chart update rate. Simple math!