从串口读取数据的实时绘图 [英] Real time Plotting with data read from serial port

查看:522
本文介绍了从串口读取数据的实时绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我目前正在从事一个项目,该项目需要绘制来自串行端口的数据并在读取时同时绘制它们.我更喜欢使用c#,如果有人可以帮助我,将不胜感激.

让我对自己的工作有更多了解,
我正在从脉搏血氧仪中获取人脉的数据,并且希望将其绘制在一个绘图中...所以任何在那里的人都可以为我提供帮助,请帮助..


i am currently working on a project which need to plot the data coming from the serial port and plot them simultaneously with read in. I prefer to work with c# and if some one can help me, it will be grateful.

to give more understanding about my work,
I am getting data of human pulses from a pulse oximeter and I want to plot them in a plot.....so any body out there to help me, please help..

推荐答案

我不熟悉串行端口通信,但是我认为这篇代码项目文章可能对从串行端口读取数据有帮助
使用WPF,RS232和PIC通信的串行通信 [ ^ ]
检索数据后,此代码项目文章
实时图表和图形合为一体 [
I am not familiar with Serial port communication, but I think this Code Project article may be of some help to read data from a serial port
Serial Communication using WPF, RS232 and PIC Communication[^]
After retrieving the data this Code Project article
Realtime Chart and Graph in One[^]
may be helpful to draw the graph.
I am not sure, but thought these links may give some clues to your work.


您必须确定图形控件需要显示多少数据?说它是否可持续了500点,或者您只是使用Graphics和DrawLine函数来绘制图形就正确了吗?如果您的图表需要显示所有数据,那么事情将会变得复杂.您必须找到一些机制以减少数据点的数量.否则绘制速度会很慢. (也许您可以将分辨率作为选项提供给用户)

jkchan
http://cgmath.blogspot.com/ [ ^ ]
you must decide how much data your graph control need to show ? say if it last 500 points or like that you simply use Graphics and DrawLine functions to draw the graph right ? if your graph needed to show all data things will get complicated. you must find some mechanisam to reduce number of data points..otherwise drawing will be slow. (may be you can provide the resolution as an option to user)

jkchan
http://cgmath.blogspot.com/[^]


这篇关于从串口读取数据的实时绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆