首页 | 本学科首页   官方微博 | 高级检索  
     

MSComm和多线程在数据采集系统中的应用
引用本文:王建新,严骏,曾拥华,张淑. MSComm和多线程在数据采集系统中的应用[J]. 计算机应用与软件, 2006, 23(4): 134-136
作者姓名:王建新  严骏  曾拥华  张淑
作者单位:解放军理工大学工程兵工程学院,江苏,南京,210007;解放军理工大学工程兵工程学院,江苏,南京,210007;解放军理工大学工程兵工程学院,江苏,南京,210007;解放军理工大学工程兵工程学院,江苏,南京,210007
摘    要:针对串口通信的实时性和系统资源的利用不足,提出了基于多线程和MSComm控件的串口通信设计思想。结合串口通信的机理和自定义消息方式的多线程,并利用操怍方便、稳定可靠的MSComm控件,分析了Win32环境下的采集软件的开发方法。用Visual C++6.0实现了发动机振动信号的数据采集系统软件,给出了软件的设计思路,关键步骤和部分的程序代码。目前该软件在发动机故障振动信号采集当中得到了很好的应用,为以后发动机故障信号的特征提取打下了良好的基础。

关 键 词:MSComm控件  多线程  消息机制  串行通信  数据采集
收稿时间:2004-12-08
修稿时间:2004-12-08

APPLICATION OF MSCOMM AND MULTI-THREAD IN DATA ACQUISITION SYSTEM
Wang Jianxin,Yan Jun,Zeng Yonghua,Zhang Shu. APPLICATION OF MSCOMM AND MULTI-THREAD IN DATA ACQUISITION SYSTEM[J]. Computer Applications and Software, 2006, 23(4): 134-136
Authors:Wang Jianxin  Yan Jun  Zeng Yonghua  Zhang Shu
Abstract:In light of disadvantages of serial communication in real time and using of system resource,the idea of serial communication design based multi-thread and MSComm is presented.The joint of the serial communication mechanism and self-defined message multi-thread,and MSComm that is operated conveniently and steady and reliable are employed in achievement to the idea.The way to 32-bits operation system data acquisition software is analyzed.The data acquisition software of vibration signal of engine is implemented in Visual C 6.0.And the idea of design and key step of programming and its implemented segment code are presented.The software has been developed successfully in data acquisition of vibration signal of engine.The foundation of extract of the fault features is founded well in the future.
Keywords:MSComm controlware Multi-thread Message mechanism Serial communication Data acquisition
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号