联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All 串口编程(82) 

[串口编程] DelphiSPCOMM

Delphi是一种具有功能强大、简便易用和代码执行速度快等优点的可视化快速应用开发工具,它在构架企业信息系统方面发挥着越来越重要的作用,许多程序员愿意选择 Delphi作为开发工具编制各种应用程序。但是,美中不足之处是 Delphi没有自带的串口通信控件,在它的帮助文档里也没有提及串口通信,这就给编制通信程序的开发人员带来许多不便。 目前,利用 Delphi实现串口通信的常用的方法有 3种:一是利用控件,如 MSCOMM控件和 SPCOMM控件;二是使用 API函数;三是调用其他串口通信程序。其中利用 API编写串口通信程序较为复杂,需要掌握大量的通信知识。相比较而言,利用 SPCOMM控件则相对较简单,并且该控件具有丰富的与串口通信密切相关的属性及事件,提供了对串口的各种操作,而且还支持多线程。下面本文结合实例详细介绍 SPCOMM控件的使用。
Delphi is one kind has powerful, easy to use and code execution speed of the advantages of the visual rapid application development tool, it in architecture enterprise information system are playing a more and more important role, many programmers to choose to Delphi as development tools draw up various applications. But, the fly in the ointment is the Delphi did not have self-contained serial interface communication control, in its help a document also no mention of the serial interface communication, it is to prepare communication program developers to bring a lot of inconvenience. At present, the use of Delphi realize the common method of serial communication has 3 kinds: one is the use of control, such as MSCOMM control and SPCOMM control 2 it is to use API functions Three is calling other serial interface communication program. Which use API write serial interface communication program is relatively complex, need to master (2012-03-07, Visual C++, 67KB, 下载7次)

http://www.pudn.com/Download/item/id/1787418.html

[串口编程] 多串口多线程工业控制实现

由于工作关系几个月没有接触Internet了,回来发现很多朋友给我写了信,其中很多一部分都是关于串口方面出现了问题。由于在以前的工程实施过程中关于串口通讯我有时用MSCOMM控件,有时自己用WIN32 API直接操作串口。后来还试验了网络上面很流行的SerialPort类。在工业控制过程中间我对SerialPort类进行了一些简单的修改,发现这个类确实是一个非常好的东西,其中封装了操作串口复杂的一些串口操作。我们使用的时候可以直接通过它的一些简单的接口就可以完成各种外围设备的工作了。我对串口数量和程序长时间运行做了一些测试,效果都是很好的(串口扩充到了11个,运行时间是在一个项目中,到现在已经运行了1个多月没有出现问题)。
working relationship several months without Internet access, back found many friends wrote to me, many of which are part of the serial connection is a problem. As in previous works on the process of implementing serial communications I sometimes use MSCOMM control, sometimes they used WIN32 API directly with the serial port. Later, the pilot of the network above the very popular SerialPort category. Industrial process control in the middle category SerialPort I had some simple changes, the discovery of this type is a very good thing, Packaging operating serial complexity of some serial operation. We can use the time directly through some of its simple interface to be completed on the various external devices work. My serial number and operating procedures for a long time to do some testing (2006-01-01, Visual C++, 92KB, 下载995次)

http://www.pudn.com/Download/item/id/137498.html
12345
总计:82