摘要
介绍已有的在HLA仿真中重用MATLAB模型的各种方法,并分析了各种方法的优缺点,然后提出新的将Simulink模型用于HLA仿真的方法,即在模型中加入RTI接口模块,模型通过接口模块与RTI通信,当模型在Simulink环境中测试正确后,再使用Real-TimeWorkshop生成C++代码提高运行效率。文章接着介绍RTI接口模块的实现技术,包括S-Function,数据的类型映射与打包解包,代码生成,RTI接口模块的自动生成等,最后对用RTI接口模块开发的联邦成员的运行效率进行了对比分析。
Several implementation of reusing MATLAB models in HLA simulation was described, and their advantage and disadvantage were analyzed, and then a new method using Simulink models in HIM simulation was proposed, that is adding the RTI interface blocks to Simulink model. Simulink model could communicate with RTI via the interface blocks. After the model was tested successfully, it could also generate C++ code using Real-Time Workshop, and this made the model run more effective. Then the development technology of RTI interface blocks was described, which included S-Function, data type mapping and data pack/unpack, code generation, RTI interface block auto generation, etc. At last, the run-time efficiency of federate program that was developed using RTI interface blocks was given through comparisons and analyses.
出处
《系统仿真学报》
EI
CAS
CSCD
北大核心
2006年第2期335-337,400,共4页
Journal of System Simulation