R
RichMo
Hi,
I'm new to C++ and i can't seem to find a tutorial on the net for thi
one.
I have a dialog based MFC app running that reads sensors using a US
interface device.
At the moment the varying data just moves a progress bar up and down.
I'm looking for a way to display this sensor data as a graph on th
screen. There are variables in my program that chenge as the senso
reading changes, so all i need to do is plot this against time on
line graph.
Here is some pseudocode for an example;
prognameDlg::OnTimer()
{
sensor1 = readData();
plot x,sensor1;
x++;
}
Code like this would just plot points as it moved along the screen. I'
guessing this should be quite simple, but i dont even know where t
start.
I suppose i need some sort of control or frame for the graph. I als
need to know how to draw the lines in it and make it scroll or restar
from the beginning.
Please can someone let me know where to start, or post a link to
tutorial if you know of one.
Thanks,
RichM
-
RichM
I'm new to C++ and i can't seem to find a tutorial on the net for thi
one.
I have a dialog based MFC app running that reads sensors using a US
interface device.
At the moment the varying data just moves a progress bar up and down.
I'm looking for a way to display this sensor data as a graph on th
screen. There are variables in my program that chenge as the senso
reading changes, so all i need to do is plot this against time on
line graph.
Here is some pseudocode for an example;
prognameDlg::OnTimer()
{
sensor1 = readData();
plot x,sensor1;
x++;
}
Code like this would just plot points as it moved along the screen. I'
guessing this should be quite simple, but i dont even know where t
start.
I suppose i need some sort of control or frame for the graph. I als
need to know how to draw the lines in it and make it scroll or restar
from the beginning.
Please can someone let me know where to start, or post a link to
tutorial if you know of one.
Thanks,
RichM
-
RichM