-3

I am new to GUI development and Embedded programming using DSP Processors.

I would like to build a GUI of 4 channel oscilloscope using Visual C# and Windows Forms. The signals will be communicated from DSP processor using serial port RS232.

What kind of Windows Forms controls help in building such a GUI? and how to start with the work?

If there any other useful tools to be used along with Visual studio C#? Any useful links explaining the basics of development may be helpful.

Lukasz Mk
  • 7,000
  • 2
  • 27
  • 41
  • Why people are still using WinForms for new work instead of the superior WPF I have no idea. Laziness I assume. – user9993 Aug 12 '16 at 09:26

1 Answers1

1

What kind of Windows forms controls help in building such a GUI?

There is a nice tool un Windows Forms called Chart. You can draw graphs of different kind with it.

Here is a Tutorial

Here is a Video that shows how to use it.

How to start with the work?

You should start and play with this control.

  • Learn how to add values.
  • Learn how to remove values.
  • Learn how to bind values.
  • Learn how to handle the axes and the ranges to be displayed.

If there any other useful tools to be used along with Visual studio C#?Any useful links explaining the basics of development may be helpful.

here you find all different chart types that can be displayed.

and here how to use them.

This answer is partly copied from a previous one of mine.

I would suggest to search also for "online/real time display of data with chart control" or "moving chart".

This link might be usefull. It asks for almost the same as you.

Here you can find some samples

Community
  • 1
  • 1
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
  • Really good answer, thanks. – Lukasz Mk Aug 12 '16 at 09:07
  • No problem. Have fun! I sure did :) – Mong Zhu Aug 12 '16 at 09:45
  • Thank you so much.I shall try out and get back. – user6708463 Aug 16 '16 at 04:07
  • @ Mong Zhu -Can the look of the graph generated using zedgraph be improved? Currently the background of the graph is white.Can it be changed to say, black, with green dotted grid lines, similar to an oscilloscope view? – user6708463 Aug 19 '16 at 11:29
  • @user6708463 for the background color, the first answer from [here](http://stackoverflow.com/questions/6997690/change-zedgraph-pane-background-color) should help. For the grid lines color try: `myPane.XAxis.MajorGrid.DashOff = 1` and `myPane.XAxis.MajorGrid.Color = Color.Green`. it's from [here](http://stackoverflow.com/questions/35683563/zedgraph-majorgrid-and-minorgrid-linestyle). ( I personally never used zedgraph) – Mong Zhu Aug 19 '16 at 11:35