EvilZone
Programming and Scripting => .NET Framework => : Kryptonite August 31, 2013, 01:47:36 PM
-
Good day guys,
I am currently working with VB 2010, and am to receive values via RS232 communication, and plot these received values in a real time graph.
I have searched the net, but I cannot seem to narrow down on a proper tutorial or explanation on how to achieve this.
Would anybody here be able to help or explain what needs to be done?
Thanks in advance
-
Do you HAVE to use VB? It would be easier in Python.
http://pyserial.sourceforge.net/
Used this once, worked great: http://matplotlib.org/
-
I'm not forced to use VB, but that's what I'm familiar with, because I still have to create a GUI and perform several other functions and interact with databases. If I use Python, I'll have to learn the language first
-
You'll end up making it in Python faster than VB either way. I'd go with python if I were you.
-
In the event that he can't go with Python... What kind of graph are you looking for @OP? It's easy enough to create a custom graph control using GDI in .NET. I've made a few of them already. But there are chart controls already available to you.
-
I was able to use a few chart controls built into the VB environment. If anybody needs any help with a similar problem in the future, contact me and I shall provide my code and project
-
I was able to use a few chart controls built into the VB environment. If anybody needs any help with a similar problem in the future, contact me and I shall provide my code and project
And why not share it now?
-
The goal of the project attached was to:
- receive information in the form of a string via serial communication
- extract the various readings
- plot and display a real time graph
- and to save various values into a database
Use it as you will, but please make sure not to include any of the names in the project
(it may not work if the database directory isn't corrected)
-
IMO you should be using more features of the language to write such a project. Arrays, etc... All you have is repeated code, a bunch of forms, single letter variables, a lack of loops that would've been valuable in more than several cases, and more. Where's your separation of concerns?
Functions? Classes? ???