主办:陕西省汽车工程学会
ISSN 1671-7988  CN 61-1394/TH
创刊:1976年

汽车实用技术 ›› 2022, Vol. 47 ›› Issue (22): 59-64.DOI: 10.16638/j.cnki.1671-7988.2022.022.012

• 设计研究 • 上一篇    

基于 NI-PXI 平台的汽车电控单元 HiL 系统 设计与开发

吴利广 1,2,韩忠良 2,李 飞 3,景立新 3,王振峰 2   

  1. 1.天津大学;2.中国汽车技术研究中心有限公司; 3.长城汽车股份有限公司
  • 出版日期:2022-11-30 发布日期:2022-11-30
  • 通讯作者: 吴利广
  • 作者简介:吴利广(1985—),男,硕士研究生,高级工程师,研究方向为车辆动力学及控制,E-mail:wuliguang@catarc.ac.cn。

Design and Development of Hardware-in-the-Loop Simulation Test System for Electronic Control Unit Based on NI-PXI Platform

WU Liguang1,2, HAN Zhongliang2 , LI Fei3 , JING Lixin3 , WANG Zhenfeng2   

  1. 1.Tianjin University; 2.China Automotive Technology and Research Center Company Limited, Tianjin; 3.Great Wall Motor Company Limited
  • Online:2022-11-30 Published:2022-11-30
  • Contact: WU Liguang

摘要: 硬件在环实验平台能有效地提高控制系统开发效率。现在各种汽车电控单元硬件在环 平台专用化程度高、集成度低,操作较为繁琐。针对这些问题,文章设计了一款基于 NI-PXI 平台通用的汽车电控单元(ECU)硬件在环(HiL)测试系统,可提高系统集成度并简化操作 方法。开发了基于 LabVIEW 和 VeriStand 的上位机监控管理界面,实现了手动测试、数据回 放、模型仿真、电源控制等功能和系统设备的统一调度管理。设计了基于控制器局域网络 (CAN)总线的通用故障注入模块,提高了经济性和适用范围。通过 HiL 系统对电控悬架, 进行仿真测试,较好地验证了悬架控制器的控制逻辑,达到了预期测试效果。实际应用表明, 该 HiL 系统使用方便且具有一定通用性,能够有效提高汽车电控单元(ECU)开发效率。

关键词: 硬件在环;汽车控制器;NI-PXI;模型仿真;测试用例;系统开发

Abstract: The hardware-in-the-loop (HiL) experiment platform can effectively improve the efficiency of control system development. Nowadays, the HiL platform of various electronic control units (ECU) has a high degree of specialization and low of integration, thus cumbersome to operate. To solve these problems, this paper designed a universal HiL system for vehicle ECU tests based on the NI-PXI platform, which achieved the improved integration and simplified operation. Based on LabVIEW and VeriStand, the host computer monitoring and management interface was developed to implement manual testing, data playback, model simulation, power control, etc., which realized the unified scheduling and management of equipment. Meanwhile, a general fault injection module based on controller area network (CAN) bus was designed to improve the economy and application range. The HiL system was used to simulate and test the electronically controlled suspension, which achieved the expected test results, thus verified the control logic of the suspension controller. Finally, a test report was generated via running the test case. The practical application shows that this HiL system is easy to use and has a certain versatility, which can effectively improve the development efficiency of electronic control units.

Key words: Hardware-in-the-loop; Vehicle controller; NI-PXI; Model simulation; Test case; System development