Visual Studio Express / Graphing串口? [英] Visual Studio Express/Graphing Serial Port?

查看:81
本文介绍了Visual Studio Express / Graphing串口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Guys,

我按照教程在visual studio中完成了一个程序,它通过串口读取值并在文本框中显示它们,只是随机数字真的.Code只是好几行。

我想知道我可以在这些值出现时绘制这些值吗?

我尝试使用图表组件这个例子,因为它只有几行代码,但没有成功。

http://codeabout.wordpress.com/2011/05/15/easy-way-to-plot-graphs-in-c-and-visual -studio-2010 /



上述方法是否可以与从串口传递其中一个轴(x轴)的值相结合?

或者如果没有,任何人都可以指向另一个教程,该教程展示如何绘制串口图形

Hey Guys,
I followed a tutorial and done a program in visual studio where its reading in values via the serial port and displaying them in a text box,just random numbers really.Code is only a couple of lines long.
I'm wondering can I graph those values as they're coming in?
I tried this example using the chart component as it only had a few lines of code but was unsuccessful.
http://codeabout.wordpress.com/2011/05/15/easy-way-to-plot-graphs-in-c-and-visual-studio-2010/

Would the above method work combined with passing the value of one of the axis(x axis) from the serial port?
Or if not could anyone direct to another tutorial that shows how to graph the serial port

推荐答案

串口: http://msdn.microsoft.com/en-us/library/system.io。 ports.serialport%28V = vs.110%29.a spx [ ^ ]。



对于图形,可以有许多不同的选项。您可以使用Microsoft图表: http://msdn.microsoft.com/en-us/library/dd456632。 aspx [ ^ ]( for .NET v.4.0-4.5)。



对于v.3.5,请下载http://www.microsoft.com/en-us/download/details.aspx?id=14422 [ ^ ]。



-SA
Serial port: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx[^].

For graphing, there can be many different options. You can use Microsoft Charts: http://msdn.microsoft.com/en-us/library/dd456632.aspx[^] (for .NET v.4.0-4.5).

For v.3.5, download http://www.microsoft.com/en-us/download/details.aspx?id=14422[^].

—SA


这篇关于Visual Studio Express / Graphing串口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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