摘要
论述了基于Simulink建模平台开发汽车发动机控制策略相对于传统手工编写C代码的优势,以及如何使用Real-Time Workshop自动生成代码的过程。以电子节气门控制模型为例,重点解释了嵌入式系统中数据类型定标的必要性,并通过验证证明:如果数据类型设计的更合理,可以将CodeWarrior编译过的变量所占内存减少20%甚至更多。
Compared with the traditional handwritten C code,this paper first discusses the advantage of the development of automobile engine control strategy based on Simulink platform and how to use Real-Time Workshop to realize the automatic code generation.Then with the electronic throttle control model as an example,the paper mainly explains and proves through verification the necessity of data type calibration in embedded system.If data type design is more reasonable,memory occupied by variables that are compiled by CodeWarrior can be reduced by 20% or more.
出处
《汽车技术》
北大核心
2012年第11期17-19,共3页
Automobile Technology