Click here to Skip to main content
11,647,170 members (71,119 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# graphics
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
Posted 19-May-10 9:05am
utsi690315
Edited 19-May-10 21:41pm
CPallini348.5K
v5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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".

Smile | :)
  Permalink  
v2
Comments
utsi690 at 20-May-10 2:05am
   
Thanks for ur urgent reply but i m using c sharp.net ...can u please send me c# copy of same sample code
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 VB.net but should be easily ported to c#.

Arduino with Visual Basic[^]
  Permalink  
v2

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

  Print Answers RSS
0 jyo.net 500
1 OriginalGriff 337
2 DamithSL 310
3 Sergey Alexandrovich Kryukov 265
4 CPallini 249
0 OriginalGriff 1,277
1 jyo.net 994
2 DamithSL 946
3 Sergey Alexandrovich Kryukov 853
4 CPallini 760


Advertise | Privacy | Mobile
Web02 | 2.8.150804.2 | Last Updated 21 May 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100