将Simulink模型用于HLA仿真  被引量:6

Using Simulink Model in HLA Simulation

在线阅读下载全文

作  者:乔海泉[1] 田新华[2] 黄柯棣[1] 

机构地区:[1]国防科技大学机电工程与自动化学院,湖南长沙410073 [2]国防科技大学计算机学院,湖南长沙410073

出  处:《系统仿真学报》2006年第2期335-337,400,共4页Journal of System Simulation

摘  要:介绍已有的在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.

关 键 词:SIMULINK HLA RTI 模型重用 代码生成 

分 类 号:TP391.1[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象