MSComm和CSerialPort类在多串口数据采集系统中的应用
首发时间:2011-12-13
摘要:针对串口通信实时性和程序灵活性不足的问题,提出了基于MSComm和CSerialPort类的串口通信设计思想。利用稳定可靠、操作方便的MSComm控件和透明灵活的多线程串口类,分析了Win32环境下数据采集软件的开发方法。以Visual C++为开发工具,开发了自动变速实验台数据采集软件,给出软件设计思路和关键步骤代码。该软件在工程车辆自动变速电控实验台数据采集系统中得到很好的应用,为自动变速实验台实验结果的分析提供了有效的检验工具。
关键词: 串行通信 数据采集 MSComm控件 CSerialPort类
For information in English, please click here
Application of MSComm and CSerialPort Class in multi-serial port data acquisition system
Abstract:For problems of serial communication in real-time and flexibility, the design idea of serial communication based on MSComm and CSerialPort Class is presented. The robust MSComm and transparent- flexible CSerialPort are applied to analyze the development method of data acquisition software for 32-bits operation system. The data acquisition software of automatic transmission experimental bench is implemented, and design idea and key-step codes are presented. The software is well applied in data acquisition system of automatic shift bench, and it provides an effective test tool for analyzing experiment results.
Keywords: serial communication data acquisition MSComm control CSerialPort Class
论文图表:
引用
No.****
同行评议
共计0人参与
勘误表
MSComm和CSerialPort类在多串口数据采集系统中的应用
评论
全部评论0/1000