摘要
为了实时检测磨头的压力从而指导计算机控制光学表面成形过程,在Visual C++2008平台下开发了磨头工作状态在线监测软件。使用无线通信模块及MSComm控件实现了PC与磨头的串口通信。然后,基于自定义通信协议及数据接收缓冲区完成数据的实时采集。使用队列数据结构以及双缓冲绘图方式结合多线程机制实现了高速数据的动态显示。最后,进行软件与硬件联合调试的实测实验。结果表明利用本软件可以稳定可靠地实现对磨头工作压力的监测。
In order to detect polishing tool working pressure real timely thus guiding computer control optical surfacing processing,polishing tool on-line monitor software was developed at Visual C+ + 2008 platform. Serial communication between computer and polishing tool was realized by wireless communication model and MSComm controls. Then,real- time acquisition was completed based on self defining communication protocol and data receiving buffer. High speed data flow was rendered dynamically,which based on queue data structure,double buffer and multiply thread mechanism. At last, experiment between software and hardware was developed. The result indicated this software could realize polishing tool pressure detecting steadily and dependably.
出处
《电子测量技术》
2012年第6期129-132,共4页
Electronic Measurement Technology
关键词
串口通信
数据处理
双缓冲
多线程
serial communicationldata processing
double buffer
multiple thread