从USB读取值并使用它们绘制曲线 [英] Read values from USB and use them to draw a curve

查看:108
本文介绍了从USB读取值并使用它们绘制曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在使用USB.我想从USB中读取数据,并根据输入数据在c ++中绘制一条曲线.我不知道该如何绘制,我的意思是我对软件一无所知.我已经完成了它的硬件.您能在我的编程中取悦我吗?

再见

[edit]标题更改为更有意义的主题,我该怎么做?"不会告诉任何人您要实现的目标. OriginalGriff [/edit]

Hello,

I am working with USB. I want to read from a USB and draw a curve in the c++ from my input data. I don''t know how to draw this, I mean I don''t know any thing about software. I have completed it''s hardware. Can you please me in it''s programming?

bye

[edit]Title changed to more meaningful subject, "How do I do it?" does not tell anyone what you are trying to achieve. OriginalGriff[/edit]

推荐答案

签出出租编码器".他们那里的人几乎热衷于无所事事.
Check out rent-a-coder. They have people there that love working for almost nothing.


好吧,没人愿意为您完成工作.因此,如果您不懂C ++,建议您要么雇用一个人,要么自己开始学习(例如,买一本书).

现在,要为您的问题提供一些指导,您必须将两个任务分开:从USB读取数据并绘制数据.
为了从USB读取数据,这完全取决于您与之通信的设备类型.您需要访问设备的驱动程序.因此,根据设备的不同,执行此操作的方法是完全不同的. USB与串行端口完全不同.

对于绘图部分,您可以看一下我的信号,这里有指向我开发的图表控件的链接,该控件对您有用.
Well, nobody''s going to make the work for you. So, if you have no knowledge in C++, I suggest that you either hire someone or start learning it yourself (buy a book for instance).

Now, to give some pointers for your question, you have to separate the two tasks: reading the data from USB and drawing it.
For reading data from USB, it all depends which type of device your are communicating with. You need to have access to the driver of the device. So, depending on the device, the way to do this is completely different. USB is not at all similar as a serial port.

For the drawing part, you can take a look at my sig, there''s a link to a chart control that I developped which coulb be useful for you.


这篇关于从USB读取值并使用它们绘制曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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