摘要
在实时性要求较高的测控系统中,数据采集和处理必须同步进行,而串口通信具有连接简单、使用方便、数据传送稳定等特点,在工业实时控制系统中得到了广泛地运用。文章以Win API函数作为底层接口,运用多线程编程技术,开发了一个用于无人直升机模拟飞行平台的串口通信软件,该串口通信软件实现了飞行参数实时获取、实时数据处理及实时发送等功能。实际应用中获得了良好的效果。
In measuring and controlling systems requiring high real-time performance, data acquisition and data processing should be implemented synchronously. With the features of simple connection, convenient usage and steady data transferring, the serial port has been widely applied in industrial control system. With Windows API functions being the bottom interface and using the multi-thread programming technology, a serial communication program is developed for simulated flight platform of no-man helicopter. The system achieves functions of data acquisition, data processing and data transferring. And it has good results in the practical applications.
出处
《仪表技术》
2010年第8期41-43,共3页
Instrumentation Technology
关键词
串口
多线程
API
无人直升机
serial port
multi-thread
API
no-man helicopter