我需要使用RS232通讯端口源代码连接到PC [英] I need to connect to the PC using RS232 communication port source coding

查看:63
本文介绍了我需要使用RS232通讯端口源代码连接到PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数字秤,我需要使用RS232通信端口连接到PC.每当我称重一个对象时,结果/重量就会自动显示在我制作的Visual Basic应用程序的文本框控件中.我需要您的帮助,以获取将与称重设备进行通信的完整源代码,以及应使用哪种控件进行通信以及如何通信?

I have a digital weighing scale I need to connect to the PC using RS232 communication port. Every time I weigh an object, automatically the result/weight will display in the the textbox control in Visual Basic Application that I made. I need your help for the complete source code that will communicate to the weighing device and what control should I use to communicate and how?

推荐答案

没有人愿意给您完整的源代码(为什么我们要为您付款?):使用Google的SerialPort控件,然后从那里获取它.
No-one is going to give you the full source code (why would we do the work you are paid for?): google for the SerialPort control and take it from there.


没有人会翻滚而仅给出你们所有的代码.

您是否自己对此进行了任何搜索或研究?不这么认为.


从本文的基础开始;

在NET 2.0中串行端口上的通信 [
Nobody is going to rollover and just give you all the code.

Have you done any searching or research into this yourself? didn''t think so.


Start with the basics like this article;

Communication on a serial port in NET 2.0[^]


这篇关于我需要使用RS232通讯端口源代码连接到PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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