10-09-2009 03:19 PM
steve
I just need to understand your example a little better
what is the "log interval"?? is this the sample rate in seconds?
what is the Yscale.Scalefit?
can you explain how your case statement works? ...I see it changes between case 0 and case 1
Im just trying to understand how it works and how to put this in my code
thanks
J
10-09-2009 04:32 PM
Yes, the log interval is the log time in seconds. I changed the program a bit (enclosed) to have this actually do what is needed if you want to change the interval.
The case statement does case 0 the first time through the while loop, and after that, case 1 is always executed (because case 1 is set to be the default).
The Yscale.scalefit is set to do an autoscale on Y one time. This may not be needed. This was taken from some existing code of mine.
steve
10-09-2009 04:57 PM
This may make it easier to use. This version puts all the setup before the loop.
In the application I pulled this from, I wanted the ability to change the amount of plot time that was shown at runtime.
Hope this helps.
steve