从USB端口读取数据并以图形形式显示并保存数据 [英] Read data from USB port and display in graph form and save data

查看:107
本文介绍了从USB端口读取数据并以图形形式显示并保存数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从USB端口接收数据并以图形形式显示并保存数据

图片 [解决方案

您可以订阅一个事件,该事件将告诉您何时新驱动器已连接.然后,您可以确定它是USB.但是,USB只是驱动器,您可以从其中读取数据.如果您无法绘制自己的图表,则有许多免费和付费的图表库,但这并不难,尤其是因为它不是Web应用程序.


<听起来好像您正在尝试将USB端口视为串行或并行端口一样.你不能它不是端口,而是总线.

您不从USB端口读取数据.您从与其连接的设备上进行读取.您的操作方式取决于设备以及设备公开给应用程序与之通信的接口.


I will need to receive data from the usb port and display in graph form and save data

pic[^]

解决方案

You can subscribe to an event that will tell you when a new drive is connected. And you can then work out that it is a USB. But, a USB is just a drive, and you can read the data from it. There''s a number of charting libraries, free and paid, if you can''t draw your own charts, but it''s not hard, esp as this is not a web app.


It sounds as though you''re trying to treat the USB port like a serial or parallel port. You can''t. It''s not a port, it''s a BUS.

You don''t read from a USB port. You read from the device connected to it. How you do that depends on the device and what interface it exposes for applications to talk to it.


这篇关于从USB端口读取数据并以图形形式显示并保存数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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