首页 | 本学科首页   官方微博 | 高级检索  
     检索      

将Simulink模型用于HLA仿真
引用本文:乔海泉,田新华,黄柯棣.将Simulink模型用于HLA仿真[J].系统仿真学报,2006,18(2):335-337,400.
作者姓名:乔海泉  田新华  黄柯棣
作者单位:1. 国防科技大学机电工程与自动化学院,湖南长沙,410073
2. 国防科技大学计算机学院,湖南长沙,410073
摘    要:介绍已有的在HLA仿真中重用MATLAB模型的各种方法,并分析了各种方法的优缺点,然后提出新的将Simulink模型用于HLA仿真的方法,即在模型中加入RTI接口模块,模型通过接口模块与RTI通信,当模型在Simulink环境中测试正确后,再使用Real-Time Workshop生成C++代码提高运行效率。文章接着介绍RTI接口模嶷的实现技术,包括S-Function,数据的类型映射与打包解包,代码生成,RTI接口模块的自动生成等,最后对用RTI接口模块开发的联邦成员的运行效率进行了对比分析。

关 键 词:模型重用  代码生成
文章编号:1004-731X(2006)02-0335-03
收稿时间:2004-12-08
修稿时间:2004-12-082005-05-11

Using Simulink Model in HLA Simulation
QIAO Hai-quan,TIAN Xin-hua,HUANG Ke-di.Using Simulink Model in HLA Simulation[J].Journal of System Simulation,2006,18(2):335-337,400.
Authors:QIAO Hai-quan  TIAN Xin-hua  HUANG Ke-di
Institution:1 .Department of Automatic Control, National University of Defense Technology, Changsha 410073, China; 2.Department of Computer, National University of Defense Technology, Changsha 410073, China
Abstract: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 HLA 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.
Keywords:Simulink  HLA  RTI
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号