C# How do i draw graphs with C# + zedgraph

  • Thread starter Thread starter Ian_Brooks
  • Start date Start date
  • Tags Tags
    Graphs
Click For Summary
The discussion centers around the implementation of a real-time 2D graphing program for a thesis project that involves plotting data received wirelessly via Bluetooth. The data includes directional motion, acceleration, elevation changes, ECG, and heart rate. The user is developing a C# GUI and seeks advice on how to create a scrolling graph that refreshes with incoming data. Suggestions include using ZedGraph for graphing, with requests for tutorials and resources. One participant shares their experience with a similar project using VB6 and NTGRAPH, noting satisfactory results. Another suggests considering ActiveX components used in Excel for graphing, while emphasizing the availability of helpful samples on CodeProject for C# development.
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:
Technology 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
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 23 ·
Replies
23
Views
15K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
11K