Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Visual-Studio WPF
I have drawn a graph in forms using zedgraph . Is it possible to plot a graph using serial port data ? Need a bit of guidance on this
Posted 22-Nov-11 2:08am
Comments
lukeer at 22-Nov-11 7:30am
   
Of course that's possible. You need to listen to the serial port in question, interpret the data that is being received and draw it accordingly.
 
I'm sure you will get help if you provide some more information on what exactly doesn't work (error message, maybe?).
steven8Gerrard at 22-Nov-11 8:41am
   
I'm unable to add the graph control for ex like zedgraph . I use temp sensor i can chop temperature value and draw but my problem is with drawing the graph control . I cant get anything in this A WPF Graph Control Library[^]tutorial . Demo project has some errors too
lukeer at 23-Nov-11 2:56am
   
So you already have all the data where you need it and the remaining problem is to display it on screen in some manner that suits your needs?
 
What's the exact problem?
Don't have a suitable control?
Control cannot be instantiated?
Control is instantiated but doesn't show data?
 
Improve your question using the "Improve question" link.
steven8Gerrard at 23-Nov-11 4:25am
   
I dont have any problem in reading data . I have already read the data from serial post and stored it in a variable . My only problem is i dont know how to draw a graph . I used zedgraph in forms . I just want to add a graph control and pass the value to plot graph . My question is how to add a graph control or whatever ?? Can you get me??
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Yes,
 
See this article; Arduino with Visual Basic[^]
 
It shows the serial port data being trended.
  Permalink  
Comments
steven8Gerrard at 23-Nov-11 2:35am
   
This one doesn't support my requirement . I wish to use a third party control like zedgraph . Is there any available for WPF? By getting serial port data in a variable and chopping it . I can pass it to graph and plot it
DaveAuld at 23-Nov-11 3:28am
   
There are plenty 3rd party controls available search on Google for 'WPF Real Time chart' you will see them and also some articles on how to roll your own if you want to minimize cost.
steven8Gerrard at 23-Nov-11 8:44am
   
I used this http://www.codeproject.com/KB/WPF/wpfgraph.aspx?msg=3116018#xx3116018xx . When i add library file WPFgraph.dll to reference but unable to use the class .
lukeer at 23-Nov-11 9:37am
   
In this case I suggest to ask the author directly. There is a forum at the bottom of the page you linked. The author will know best how to use his work.
steven8Gerrard at 23-Nov-11 10:06am
   
I dont actually need that much controls in my graph . I just need a line graph which connects two points . x & Y . X being temperature eceived from serial port and other current time . Any ideas?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try ZedGraph
[^]
  Permalink  

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

  Print Answers RSS
0 DamithSL 320
1 OriginalGriff 275
2 Sergey Alexandrovich Kryukov 187
3 Afzaal Ahmad Zeeshan 154
4 Peter Leow 115
0 OriginalGriff 7,510
1 DamithSL 5,494
2 Sergey Alexandrovich Kryukov 4,954
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
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