• 论文 •    

基于Qt/E的嵌入式工业监测轻型图形用户界面构件库开发

谭大鹏,李培玉,潘晓弘   

  1. 1.浙江工业大学 机械制造及其自动化教育部重点实验室,浙江杭州310032;2.浙江大学 机械与能源工程学院,浙江杭州310027
  • 出版日期:2009-02-15 发布日期:2009-02-25

Lightweight graphic user interface components library development oriented to embedded industry monitoring system based on Qt/E

TAN Da-peng, LI Pei-yu, PAN Xiao-hong   

  1. 1.The Ministy of Education key Lab of Mechanical Manufacture and Automation, Zhejiang University of Technology, Hangzhou 310032, China;2.School of Mechanical & Energy Engineering, Zhejiang University, Hangzhou 310027, China
  • Online:2009-02-15 Published:2009-02-25

摘要: 针对嵌入式工业监测系统图形用户界面占用空间较大、可配置性差、实时性不强等问题,提出了一种基于Qt/E的轻型图形用户界面构件库实现方法。分析了工业监测技术的基本特点,并对Qt/E基本库进行裁减。通过多线程技术提高了对监测数据采集、分析和显示的并行处理能力,使图形用户界面的实时性、快速性得到了保证。利用Qt内部通信接口,实现了无需回调的消息映射机制,提高了界面上下文切换速度,使图形用户界面开发过程更加简单和透明。开发了面向工业监测的共享构件库,较好地解决了其跨平台适用性问题,并能根据用户的具体需求进行配置与裁减。工业现场实验证明,利用该构件库开发的图形用户界面占用空间较小,实时性好,能够在Linux,uCOS等嵌入式平台环境下稳定运行,为工业监测系统交互性的提高提供了较好的技术支持。

关键词: 工业监测, 图形用户界面, 构件库, Qt/E, 实时性, 多线程, 跨平台

Abstract: Aiming at problems of embedded Industry Monitoring System (IMS) Graphic User Interface (GUI), such as large occupation space, poor configuration ability and low real-time performance, a kind of embedded IMS-GUI components library realization method based on Qt/E was brought forward. The fundamental characteristics of industrial monitoring technology were analyzed, and the Qt/E basic library was cut out according to requirement of IMS. Using multi-threaded technology, system concurrent processing ability for data collection, analysis and display was enhanced, and real-time performance and rapidity were guaranteed. By internal communication interface of Qt, the message mapping mechanism without requiring call-back function was realized, context switch speed was improved, and GUI development process would become simple. GUI shared components library oriented to IMS was developed, which was aimed to resolve the cross-platform applicability problem and it could be configured and cut for special demand of users. Industrial experiments proved that GUI developed by the components library had small occupation space and high real-time performance, It could operate smoothly in the embedded platform environment such as Linux and uCOS, and provided powerful technical support for the interaction of IMS.

Key words: industry monitoring, graphic user interface, components library, Qt/E, real-time performance, multi-thread, cross-platform

中图分类号: