以表格形式从D超微型读取实时数据 [英] Reading live data from D-subminiature in a Form

查看:62
本文介绍了以表格形式从D超微型读取实时数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

今天,我的经理告诉了我这个要求.需要从 DE-9 (9针连接器)读取实时数据并以表格形式显示.

我对此一无所知.有人对此有想法吗,请和我一起.如果您有任何资源或合适的书,请建议我.

有关DE-9的详细信息,请访问以下Wikipedia页面: http://en.wikipedia.org/wiki/D-subminiature [^ ]
问候,
西瓦·库玛(Siva Kumar)

[edit]可点击的链接[/edit]

Hi everyone,

Today my manager told me about this requirement. There is a need to read the live data from DE-9 (9-Pin Connector) and display it in a form.

I have no idea about this. Does any one have idea about it please it with me. If you have any resources or suitable books please suggest me.

For details about DE-9 check this Wikipedia page: http://en.wikipedia.org/wiki/D-subminiature[^]
Regards,
Siva Kumar

[edit] clickable link[/edit]

推荐答案

确切的操作方式取决于您可用的工具以及编程您熟悉的语言.

基本上,9针D型是串行通信端口-它接收以字节为单位传输到系统的数据,字节可以是二进制数字或字符.

如果您使用的是.NET语言,请查看使用SerialPort类-它包含一个 ^ ]会告诉您字节何时到达端口.该链接包含一个简单的示例.
Exactly how you do this will depend on what tools you have available, and what programming language you are familiar with.

Basically, a 9-pin D type is a serial communications port - it receives data which gets transferred to the system in bytes, which may be binary numbers or characters.

If you are using a .NET language then look at using the SerialPort class - it includes a DataReceived event[^] which tells you when a byte has arrived at the port. The link includes a simple example.


这篇关于以表格形式从D超微型读取实时数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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