Jump to content

live updating chart?

- - - - -

  • Please log in to reply
7 replies to this topic

#1
mmzpro

mmzpro

    Newbie

  • Members
  • Pip
  • 4 posts
hi every one....
It's my 1st post, and as it goes without saying I'm new to this community...

well... here is my problem...
I'm trying to recieve some data from RS-232 serial com port (like temprature, .... ), and i wanna show these numbers on a live updating chart, let me make it much more clear that my concept is sth like TASK MANAGER of windows which loggs the process of CPU on those greenish grid charts....

that's it..... i'd be really appreciated if any one of you CodeCall friends help this newbie through this task....
thanks in advance.....

#2
Generic

Generic

    Newbie

  • Members
  • PipPip
  • 26 posts

mmzpro said:

hi every one....
It's my 1st post, and as it goes without saying I'm new to this community...

well... here is my problem...
I'm trying to recieve some data from RS-232 serial com port (like temprature, .... ), and i wanna show these numbers on a live updating chart, let me make it much more clear that my concept is sth like TASK MANAGER of windows which loggs the process of CPU on those greenish grid charts....

that's it..... i'd be really appreciated if any one of you CodeCall friends help this newbie through this task....
thanks in advance.....

If you can request updated data from the serial port at any time you could have a separate thread that sends a request to the serial port every x seconds and updates the latest data to your grid or however you plan on storing it.
If the serial port throws updated data to you every x seconds instead of sending a request have it check for new data every x seconds on a separate thread and update accordingly.

SerialPort (RS-232 Serial COM Port) in C# .NET - #region Coad's Code (Noah Coad)
^ A tutorial for using serial ports in C#
Best of luck.

#3
mmzpro

mmzpro

    Newbie

  • Members
  • Pip
  • 4 posts
well... one of my friends is sending me the data... so i don't have any timing limit, but i want to store these data and making that graph on a time line.... exactly like TASK MANAGER... i don't know how to make that grid! so please if SO know about very basics of this please make me clear of that....
thanks for your attention....

#4
Generic

Generic

    Newbie

  • Members
  • PipPip
  • 26 posts

mmzpro said:

well... one of my friends is sending me the data... so i don't have any timing limit, but i want to store these data and making that graph on a time line.... exactly like TASK MANAGER... i don't know how to make that grid! so please if SO know about very basics of this please make me clear of that....
thanks for your attention....

If data is being sent at a random time you could have a new thread that constantly checks if there's new data available and there's a grid that you can use inside of Visual C# Express

#5
mmzpro

mmzpro

    Newbie

  • Members
  • Pip
  • 4 posts
data is being received by my own limitation, the time is not random. i'm sorry if i don't get sths fast... but is that right that i need sth except Visual Studio? and that is a different environment which helps me make those graphs?
well.... i'm confused a little! i'm using the full version of Visual Studio 2008 and U mean that my requirement is involved in a free and limited EXPRESS of C#!?

#6
Generic

Generic

    Newbie

  • Members
  • PipPip
  • 26 posts

mmzpro said:

data is being received by my own limitation, the time is not random. i'm sorry if i don't get sths fast... but is that right that i need sth except Visual Studio? and that is a different environment which helps me make those graphs?
well.... i'm confused a little! i'm using the full version of Visual Studio 2008 and U mean that my requirement is involved in a free and limited EXPRESS of C#!?

I imagine Visual Studio has it too, its just a grid control NOT a graph. You keep switching between graphs and grids so I don't know what you want.

#7
mmzpro

mmzpro

    Newbie

  • Members
  • Pip
  • 4 posts
first of all sorry for not being clear enough....
i don't know what is that being called in English!!!! but i need the same thing that U can see in Task Manager.... what is that? Grid? Graph? Chart? i need to make that moving line in green color.... plz help me through....

#8
Generic

Generic

    Newbie

  • Members
  • PipPip
  • 26 posts

mmzpro said:

first of all sorry for not being clear enough....
i don't know what is that being called in English!!!! but i need the same thing that U can see in Task Manager.... what is that? Grid? Graph? Chart? i need to make that moving line in green color.... plz help me through....
Googling Graphs in C# led me to A flexible charting library for .NET - CodeProject Should take a look at that.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users