从串口数据绘制实时图 [英] Draw real time graph from serial port data

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

问题描述

您好,专家,

我正在使用C#.
我想绘制一个实时图形.我正在从串行端口获取数据,我想将其作为Y轴,而X轴将是实时的.我不知道如何绘制这样的图形(序列数据与时间).

我从串口读取的数据是温度.

请告诉我是否有人知道该怎么做,或者给我发送示例代码.对我来说很重要请帮忙.

在此先感谢

Hi experts,

I am using C#.
I want to draw a real time graph. I am getting data from serial port which I want to take as Y axis and X axis will be real time. I don`t know how to draw such a graph (serial data vs time).

The data I''m reading from serial port is temperature.

Please tell me if anyone knows how to do it or please send me example code. It''s very important for me. Please help.

Thanks in advance

推荐答案

哇,实时图是一个大胆的要求.看看Cédric的图表控件[ ^ ],它是高速" .

您也可以尝试使用CodeProject文章搜索引擎.
例如,快速搜索就给我输入了以下内容:"Cristi Potlog的.NET图表控件" .

:)
Wow, real time graph is a bold requirement. Have a look at Cédric''s charting control [^], it is "high speed".

You may also give a try to CodeProject article search engine.
For instance, a quick search gave me this entry: "Cristi Potlog''s Chart Control for .NET".

:)


在此处查看此文章,它基于连接到Arduino的温度传感器,然后通过串行端口将数据泵送到PC.

它是VB.net,但应轻松移植到c#.

具有Visual Basic的Arduino [
See this article here, it is based on a temperature sensor conntected to an Arduino, which then pumps the data via serial port to a PC.

It is VB.net but should be easily ported to c#.

Arduino with Visual Basic[^]


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

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