基于VB6.0的制冷机控制器校准软件设计
2020-06-07吉耀辉马晓芳郑国庆
吉耀辉 马晓芳 郑国庆



摘要:制冷机在红外传感等领域具有至关重要的作用,而制冷机控制器的校准是保证制冷机准确控温的关键一环。基于Visual Basic 6.0设计了制冷机控制器校准上位机软件,采用串口通信方式,向控制器发送命令或采集数据。通过该软件可以实现制冷机控制器校准参数设定、校准过程监控、校准数据保存等功能,实时跟踪校准过程,绘制出实时曲线,便于及时发现并解决校准过程中的问题。校准过程中的数据可以被保存至Excel,便于分析控制器电路特性。
关键词:Visual Basic 6.0;MSComm控件;串口通信;制冷机控制器;校准控制
中图分类号:TP274 文献标识码:A
文章编号:1009-3044(2020)35-0047-03
开放科学(资源服务)标识码(OSID):
Design of Calibration Software for Stirling Cryocooler Controller Based on VB6.0
JI Yao-hui, MA Xiao-fang, ZHENG Guo-qing
(East China Institute of Photo-electron IC, Suzhou 215163, China)
Abstract: The Cryocooler plays a vital role in infrared sensing and other fields, and the calibration of the cryocooler controller is a key part to ensure the accurate temperature control of the cryocooler. Based on Visual Basic 6.0, the software for calibrating the cryocooler controller is designed, which uses serial communication to send commands or collect data to the controller. Through this software, functions such as the setting of calibration parameters of the refrigerator controller, monitoring of the calibration process, and saving of calibration data can be realized. The calibration process can be tracked in real-time, and real-time curves can be drawn, so that problems in the calibration process can be found and solved in time. The data during the calibration process can be saved to Excel for easy analysis of the controller circuit characteristics.
Key words: Visual Basic 6.0; MSComm control; serial communication; refrigerator controller; calibration control
1 背景
上位機在工业控制领域应用非常广泛[1],可以实现信息调度与处理,具有发送控制指令,获取设备信息状态等功能[2]。制冷机在红外[3]、医疗[4]、航空航天[5]等领域具有非常重要的应用。制冷机相对于其他的制冷技术,可以提供更加高效的低温环境,保证红外传感芯片能够正常工作[6]。为了保证制冷机能够准确控温,首先需要对其控制器校准,而上位机可以通过串口完成对控制器校准过程的监控,从而保证校准过程正常。
Visual Basic 6.0(VB6.0)提供了MSComm控件[7],可以方便灵活地实现PC机与控制器MCU通讯,从而实现人机交互[8]。在制冷机控制器校准过程中,PC机需要向MCU发送指令或参数,采集并保存控制器校准过程中的数据,完成校准过程监控。本文提及的上位机软件主要包括操作面板及监控面板,其中,操作面板主要包含串口操作、电路参数设置、保存标定数据、显示校准状态等;监控面板主要通过绘制实时曲线,用于监控校准过程中参数变化[9]。……
