摘要
快速原型仿真是实时仿真的一种,它处于产品研发的算法设计阶段与具体实现阶段之间,是产品研制过程中的一个重要环节。本文介绍了在快速原型系统中如何利用Matlab/Simulink的代码生成功能将Simulink模型转换成目标语言模型的方法;既避免了Simulink模型在Matlab/Simulink环境下仿真速度低下的问题,又能大大降低用目标语言编程建模的工作强度。实际应用表明,通过使用Simulink模型的C代码自动生成,可以方便快捷地将Simulink模型应用于半实物仿真系统,缩短研制周期,并提高仿真系统的灵活性和可靠性。
The hardware-in-the-loop simulation plays an important role in the research and design process for guided weapons. To satisfy the real-time design requirement of certain missile hardware-in-the-loop simulation system, The way that how to use the capability of Matlab/Simulink in code generation to convert the models constructed by Simulink to target language models is introduced, which not only avoids the problem of low simulation speed of the model in Matlab/Simulink circumstance,but also makes it very easy in making programs to construct target language models. The actual applications have proved that the Simulink model can be applied to the hardware-in-the-loop simulation system conveniently and rapidly based on the auto-generation of code, the development period is shorten, and the flexibility and reliability of the simulation system are enhanced.
出处
《电子测量技术》
2009年第2期28-31,共4页
Electronic Measurement Technology