Click here to Skip to main content
14,836,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,

I am using C#.
I want to draw a real time graph. I am getting data from serial port which I want to take as Y axis and X axis will be real time. I don`t know how to draw such a graph (serial data vs time).

The data I'm reading from serial port is temperature.

Please tell me if anyone knows how to do it or please send me example code. It's very important for me. Please help.

Thanks in advance
Updated 19-May-10 21:41pm

Wow, real time graph is a bold requirement. Have a look at Cédric's charting control [^], it is "high speed".

You may also give a try to CodeProject article search engine.
For instance, a quick search gave me this entry: "Cristi Potlog's Chart Control for .NET".

utsi690 20-May-10 2:05am
Thanks for ur urgent reply but i m using c ...can u please send me c# copy of same sample code
See this article here, it is based on a temperature sensor conntected to an Arduino, which then pumps the data via serial port to a PC.

It is but should be easily ported to c#.

Arduino with Visual Basic[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900