摘要
由于在批量生产过程中,生产状态、人为操作等因素可能导致仪器设备的缺陷,对仪器系统功能的测试成为仪器设备出厂前必不可少的一环。通常测试系统的数据采集和数据处理都是并行完成,而采用顺序设计方法并不适合处理并行事件带来的复杂时间逻辑问题,对此,在一种面向专用仪器的综合测试系统硬件结构基础上,采用了生产者-消费者模式设计综合测试系统的软件框架,有效管理了测试系统的内部逻辑,避免用户误操作和无效操作导致的混乱以及数据采集速率和处理速率不匹配的问题。最后,测试实例显示测试系统有效实现了用户的测试逻辑,满足现场测试需要,并能较好地提高系统测试效率。
In the process of mass production,production status,human operation and other factors may lead to the defects of instruments and equipment,thus the function test of instrument system becomes an indispensable part before the equipment leaves the factory.Usually,the data acquisition and data processing of test system are completed in parallel,but the sequential design method is not suitable for dealing with the complex time logic problems caused by parallel events.Based on the hardware structure of a comprehensive test system for special instruments,this paper adopts the producer consumer mode to design the software framework of the comprehensive test system,which effectively manages the test system.The internal logic of the system can avoid the confusion caused by user’s mis-operation and invalid operation,as well as the mismatch between data acquisition rate and processing rate.Finally,the test example shows that the test system can effectively realize the user’s test logic,meet the needs of field test,and improve the system test efficiency.
作者
张亮
安娜
毛剑琳
ZHANG Liang;AN Na;MAO Jianlin(Kunming University of Science and Technology,Kunming Yunnan 650500,China;Kunming Institute of Precision Machinery,Kunming Yunnan 650032,China)
出处
《自动化与仪器仪表》
2021年第4期71-73,81,共4页
Automation & Instrumentation
基金
云南省重点研发计划项目“工业机器人关键技术研究及其在智能制造中的应用示范”课题(202002AC080001)。