Weichai Power adopted Model-Based Design with MATLAB®和模拟金宝app®设计和实施共轨柴油发动机ECU软件。他们建立了一个生产控制和软件团队,并在工具中培训了新工程师。该公司还与Mathworks Consulting合作,建立了目标的快速原型功能,使潍柴集团公司和客户能够合作。
Working from system requirements, Weichai Power engineers developed an engine controller model in Simulink and Stateflow®。它们使用StateFlow为发动机操作模式控制,轨道压力控制和诊断程序进行模型状态转换逻辑。
During model development, they used the Model Advisor in Simulink to check compliance with modeling standards adapted from MathWorks Automotive Advisory Board (MAAB) guidelines.
使用Simu金宝applink Requirement™Tem将文本要求链接到Simulink中的模型元素,实现了确保可追溯性的要求。
In Simulink, the team created a plant model of the vehicle, after-treatment systems, and engine, including fuel, torque, intake, and exhaust subsystems. To verify the control design, they ran closed-loop simulations of the control and plant models.
它们使用Simulink Design Verifier™创建金宝app了测试向量。与Simulink 金宝appCoverage™和Simulink Check™一起使用这些测试向量使团队能够在其模型中识别死亡逻辑并实现完整的模型覆盖范围。
使用固定点设计器™,工程师通过在仿真期间记录最小和最大数据值并应用用于缩放定点数据类型的定点设计器建议,将浮点模型转换为固定点。
After comparing the floating-point and fixed-point model simulation results to verify the conversion, the team generated C code from the control model using Embedded Coder®。
在Simulink中工金宝app作,他们对ETAS上的PC和硬件循环测试执行了循环软件测试®PT-Labcar模拟器。
The team generated more than 340,000 effective lines of code for the production ECU with Embedded Coder. The generated code comprised 100% of the application software; 85% of the CAN application layer and diagnostic routines were also generated from models.
在MATLAB工作,该团队开发了车辆驱动循环软件,它们在初始生产ECU测试期间用于数据分析。
共轨柴油机ECU正在生产重型卡车,工程机械和发电设备上。潍柴电力计划重用ECU设计轻型柴油发动机。