作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2024, Vol. 50 ›› Issue (5): 272-278. doi: 10.19678/j.issn.1000-3428.0068804

• 开发研究与工程应用 • 上一篇    下一篇

冲击波超压测试多设备接入上位机软件设计及应用

张亚1, 王超1, 胡闯1, 王军1, 江娣2, 刘彦3   

  1. 1. 北京理工大学重庆创新中心, 重庆 401135;
    2. 北京理工大学机电学院, 北京 100081;
    3. 北京理工大学爆炸科学与安全防护全国重点实验室, 北京 100081
  • 收稿日期:2023-11-10 修回日期:2024-02-04 发布日期:2024-03-20
  • 通讯作者: 张亚,E-mail:516395398@qq.com E-mail:516395398@qq.com

Design and Application of Upper Computer Software for Multiple Shock-Wave Overpressure Test Devices

ZHANG Ya1, WANG Chao1, HU Chuang1, WANG Jun1, JIANG Di2, LIU Yan3   

  1. 1. Chongqing Innovation Center, Beijing Institute of Technology, Chongqing 401135, China;
    2. School of Mechatronical Engineering, Beijing Institute of Technology, Beijing 100081, China;
    3. State Key Laboratory of Explosion Science and Safety Protection, Beijing Institute of Technology, Beijing 100081, China
  • Received:2023-11-10 Revised:2024-02-04 Published:2024-03-20
  • Contact: 张亚,E-mail:516395398@qq.com E-mail:516395398@qq.com

摘要: 冲击波超压测试在爆炸威力研究中是一个重要组成部分,便捷的测试设备和方法能提高冲击波测试效率。使用Qt开发框架设计一款多线程上位机软件,同时连接多个设备,解决传统上位机软件与单个设备连接时存在的数据传输效率低、设备接入过程繁琐等问题。该上位机软件主要包含设备管理、参数管理、算法模块和数据管理4个功能模块。通过网络连接,使用自定义应用层协议与设备进行数据传输,对采集的电压信号进行数值转化和滤波,最终形成超压信号并进行数据展示。采用静态电压测试和动态压力测试对上位机软件进行功能评估,结果表明:在静态电压测试中,该上位机软件能准确反映信号发生器幅度为1 V、频率为1 000 Hz的正弦信号;在动态压力测试中,3个采集点的第一波峰压力值分别为0.117 8 MPa、0.121 4 MPa和0.117 9 MPa,与理论激波管计算值0.116 0 MPa之间的误差均在5%以内。该上位机软件能同时对多个设备进行命令控制和数据传输,简化多台设备的连接操作流程,同时提高数据传输效率,具有一定的应用推广价值。

关键词: 冲击波超压, 数据采集, 上位机软件, 多设备, Qt框架

Abstract: Shock-wave overpressure testing is crucial in explosion power research, and convenient test equipment and methods can improve the efficiency of shock-wave testing. In this study, a multi-threaded upper computer software designed with Qt can connect to multiple devices simultaneously, addressing the issues of low data-transmission efficiency and complex device-connection procedures encountered in traditional single-device upper computer software. The upper computer software includes four primary functional modules: device management, parameter management, algorithm, and data management. This software connects to devices using a custom application-layer protocol over a network, converts and filters collected voltage signals, and ultimately generates overvoltage signals for data display. The functionality of the software is tested via static-voltage and dynamic-pressure tests. In the static-voltage test, the upper computer software accurately reflects the forward sine signal with an amplitude of 1 V and a frequency of 1 000 Hz. Based on the dynamic-pressure test results, the peak pressure values of the first wave of three acquisition points are 0.117 8 MPa, 0.121 4 MPa and 0.117 9 MPa, and the error is within 5% of the theoretically calculated value of 0.116 0 MPa for the shock tube. The test results indicate that the software can simultaneously control and transfer data for multiple devices. This software simplifies the process of connecting multiple devices and improves data-transmission efficiency, and is thus highly applicable and beneficial for widespread use.

Key words: shock-wave overpressure, data acquisition, upper computer software, multiple devices, Qt framework

中图分类号: