摘要
在研究近程的异步串行通信软件以及通信协议的基础上,给出了基于API(ApplicationProgrammingInterface)的串行口通信软件设计。该软件在VisualC++6.0环境下,利用API函数,配合多线程的程序设计实现了串口通信,完成了数据的实时采集与动态图形显示。该软件已成功地应用于毛细管电泳固体电化学发光检测仪,实现了主机与测量系统之间的实时操作。实验结果表明,该设计能够实现Windows环境下的控制,与其他方法比较,该设计能更灵活和直接地完成对串口的控制操作。
The software design of universal asynchronous serial communication based on API(Application Programming Interface)is presented,which is based on the research for Multithreading universal asynchronous serial communication as well as communication protocol.Using Visual C++6\^0 API functions and Multithreading to realize the serial communication and achieve the real\|time data sampling and the dynamic display.This software has been successfully applied to the Capillary ElectrophoresisHemiluminescence Detector to carry out the real\|time operation between the host and the measured system.The serial control can be implemented by the design on the Windows condition, furthermore compared with other methods,it can be finished more directly and smartly.
出处
《吉林大学学报(信息科学版)》
CAS
2003年第4期357-361,共5页
Journal of Jilin University(Information Science Edition)
基金
国家"十五"科技攻关重大课题资助项目(2001BA210A04)