How do i draw graphs with C# + zedgraph

  • Context: C# 
  • Thread starter Thread starter Ian_Brooks
  • Start date Start date
  • Tags Tags
    Graphs
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 43K views
Ian_Brooks
Messages
127
Reaction score
0
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data. Should I use zedgraph? Where can I find useful tutorials/resources/ etc?
Thanks in advance
 
Last edited:
Physics news on Phys.org
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

http://zedgraph.org/wiki/index.php?title=Sample_Graphs ?
 
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.


As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

Hi
I developed a quite similar project based on a datalogger recording an xyz accelerometer
data (12 bits, 240 samples/sec) plus 3 ECG channels (12 bits, 960 samples/sec) on an 2GB SD card and wrote a VB6 program using the NTGRAPH component for the graphs.
The result was quite OK.
Sonnen
 
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

Have you considered using the same active x components which are used to draw graphs in excel?
 
John Creighto said:
Have you considered using the same active x components which are used to draw graphs in excel?

No, just used the NTGraph Active X Control.
 
this is an easy ,if you have good ability in c#
codeproject have good sample of that and you can get your way through that