绘制来自串行端口的数据
我在 .NET 中有一个波特率为 9600 的串行端口。传入的数据是 数字,它是电机编码器的 2 个脉冲之间的时间,它实际上是电机的 RPM。
如何实时绘制数据?
I got a serial port in .NET at 9600 baudrate. The incoming data is
numeric, it's the time between 2 pulses of a motor encoder, it's the RPM of the motor actualy.
How do I plot the data in real time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个简单的绘图仪相当容易制作。您可以花费数小时寻找合适的库或程序,或者在同等时间内编写自己的库或程序。
这是我过去的做法
我前段时间也遇到过类似的问题。我寻找一个简单、轻便的程序,可以开箱即用。我最终屈服并使用 Win32 调用编写了自己的程序。 .NET 实现会更简单。
http://www.fast-product-development.com /real-time-serial-data-plot.html
A simple plotter is fairly easy to do. You can spend hours looking for a just right library or program or just write your own in equivalent time.
Here is how I have done it in the past
I had a similar issue some time back. I looked for a simple, light program that would do it do out of the box. I finally gave in and coded my own program using Win32 calls. A .NET implementation would be simpler.
http://www.fast-product-development.com/real-time-serial-data-plot.html