摘要
针对纯电动汽车整车控制器(VCU)的控制逻辑开发,研究了一种基于MATLAB/Simulink的模型设计方法。通过将VCU的控制逻辑按照功能划分为不同模块后,利用MATLAB/Simulink工具,建立各个功能模块的逻辑控制模型。将建立的各个模型集成并优化处理,使用MATLAB自带的RTW代码生成工具生成自动代码。生成的代码与硬件平台底层代码相集成,实现上层控制逻辑生成的代码与底层驱动代码的无缝结合。实践表明,基于"V"模式的Simulink模型开发方法生成的C代码可替代手写C代码,并且模型在修改完善方面比传统手写开发模式更方便,大大缩短了VCU开发周期,提高了工程开发效率,降低了开发成本。
The model design control is studied based on MATLAB/Simulink focused on the control logic development of VCU.The control logic of VCU according to the function is divided into various modules, using MATLAB/Simulink tool to establish each logic control module. Each module is integrated and optimized, using RTW code generation tool of MATLAB to generate code automatically. The code generated is integrated with the code of underlying driver to achieve seamless integration that is the generated code from upper control logic with the underlying driver code. The result shows that C code generated from Simulink model development method based on the pattern of "V"model can replace handwritten C code, and the model in the aspect of modification is more convenient than traditional handwritten pattern, which greatly shortens VCU development cycle,improves the efficiency of engineering development, reduces development costs.
出处
《汽车工程师》
2016年第5期19-21,共3页
Automotive Engineer