摘要
介绍了Win2 0 0 0环境下利用Delphi和VB的通讯控件MSComm编写通讯软件 ,进行MSComm控件的属性设置和通讯端口初始化 ,通过MSComm控件的事件驱动方法及库函数MSComm .input()、MSComm .output()进行串口的捕捉和读写 ,实现温度巡检仪与PC机的串行通讯 ,并利用Delphi编制主控界面以实现通讯软件的智能化。实践证明该通讯软件传输数据准确、人机界面友好。
The serial communication software between temperature data loggers and computer is introduced,which is realized with Delphi and VB's communication widget MSComm under Win2000.The communication port's initialization,serial port catching and read-writing which realized by the event-driven method of MSComm are described in detail. The intelligence of the software is realized by the main controlling interface programmed with Delphi.The practice proves that it is a convenient communication software which has friendly human computer interface and veracious data transmitting.
出处
《河南科技大学学报(自然科学版)》
CAS
2003年第2期23-25,共3页
Journal of Henan University of Science And Technology:Natural Science
基金
国家自然科学基金资助项目 (60 2 0 3 0 18)
河南省自然科学基金资助项目 (0 2 110 5 10 0 0 )