摘要
针对整流实时监控系统既要完成大量实时数据处理,又要进行远程设备通信的特点,其软件开发引入了多线程通信方法,提高了系统的运行效率。该方法采用使一个事件对象变为有信号,开辟一个工作线程专门负责通信,主线程发展数据显示和创建用户界面,并列出了初始化串口和选择读写串口等通信代码示例。
Aiming at the characteristics of real-time data processing and remote communication of real-time supervision and control system, a method of multi-thread communication was applied in software development, so, the efficiency of the system is improved. Made up an event object to have signal, and developed working thread to communicate with using the method. The display of the great amount data can be completed and established user interface in the system. The example of communication codes such as initializing serial port and selecting read-write port etc. are given out.
出处
《兵工自动化》
2001年第4期18-20,共3页
Ordnance Industry Automation
关键词
整流实时监控系统
多线程通信
串口通信
软件设计
multi-thread
Communication
Asynchronism I/O commutation
Real-time supervision and control system