摘要
在分布式微机控制及数据采集系统中 ,控制与数据采集由单片机实现 ,复杂数据的处理越来越多地由PC机完成。PC机与单片机数据通信的可靠性严重影响系统整体的可靠性 ,提高数据传输的可靠性成为改进系统性能 ,提高系统整体可靠性必不可少的重要环节。描述了以MOXA卡串行通信函数和面向对象方法为核心 ,在可视化开发环境Delphi下 ,利用多线程技术 ,实现一种新型可靠的上位机与下位机之间串行通信的方法 ,并给出了部分程序和通信协议。
In distributed system,task of control and data acquisition is completed by single-chip microcomputer,and data processing is carried out by PC.The reliability of data communication between master computer and subunit considerably affect the reliability of the whole system,so it is very important to enhance the reliability of data communication.This paper describes a novel reliable method of serial communication between master computer and subunit by utilizing MOXA communication functions.The method is realized by Object Oriented Programming in visual development environment of Delphi.Introduces parts of the program and the communication protocol.
出处
《仪表技术与传感器》
CSCD
北大核心
2002年第12期32-34,共3页
Instrument Technique and Sensor