I am trying to make some kind of a data logger with say 16 channels.So far I
have managed to get the data from the serial port and plot it on a
chart.(using MSChart)I just store the data of each channel in its array(10
samples for each channel) and display it on an X-y chart.But now,I would like
to plot the data with respect to the time of the day,so that at the end of
the day,one can get an idea of the complete activity on the channel
throughout the day.What is the best way of doing this?
I have managed to get the time in the array using the following piece of code
mydate = Format(Now, "hh:mm:ss")
ch01(ch01i, 1) = mydate
What should the settings for the time axis?
I tried the following setting
.Plot.Axis(VtChAxisIdY).ValueScale.Maximum = mydate + 10 / 86400
.Plot.Axis(VtChAxisIdY).ValueScale.Minimum = mydate
expecting it to give Yaxis the range of the current time to 10 seconds
later,but the values that I see on that axis are say 0.564514 to 0.56463.
When i use the this
.Plot.Axis(VtChAxisIdY).ValueScale.Maximum = Format(mydate + 10 / 86400,
"hh:mm:ss")
.Plot.Axis(VtChAxisIdY).ValueScale.Minimum = Format(mydate, "hh:mm:ss")
gives a mismatch eror.
How do I set the axis to scale according to the time?
Hope this is clear.
Thanks.
What should the settings for the time axis?
I tried the following setting