how to plot the graph in real time using c#
Dear All,
I have one laser machine connects with the pc by serial port, by using SerialPort class in C#, I can get the energy data of it,how can I use these data to plot the graph in real time? for example, x axis is time, and y axis is energy.
Thank you.
Re: how to plot the graph in real time using c#
I'd recommend you take a look at:
http://archive.msdn.microsoft.com/mschart
It has a very complete set of examples on using MSChart. You can download the source code and/or use the interactive application to see demos for each type of chart and chart options.
There's an example on real time charts.
The only thing I could not find is how to set the line width... almost unbelievable, but so far I could not find how, neither using this example guide or the general properties/internet info.
Hope it helps!
Re: how to plot the graph in real time using c#