摘要
MATLAB/S imu link提供了友好的可视化建模界面以及大量的通用模块,赢得广大用户的青睐,但其较低的执行效率及不支持分布式计算使其在复杂动力学问题中的应用受到了限制。为提高执行效率及方便系统集成,同时又尽量保持S imu-link模型原有的灵活性,该文结合RTW(Real Tim e W orkshop)工具探讨并演示了将S imu link模型快速转换为COM组件的技术途径,并结合卫星姿态动力学仿真实例,针对所生成的组件,分别就进程内服务器、本地进程外服务器和远程服务器三类进程模型以及连续/单步两种运行模式下的性能进行了分析,试验数据说明此方法可以大大提高执行效率。
With its friendly modeling interface and the large numbers of block sets and toolboxes, Matlab/Simulink has been accepted by more and more users. But a fly in the ointment is its low run time efficiency. At the same time, distributed computation is not supported. Thus, the tool's application in solving complex dynamic problems is limited. A methodology is developed in this paper to overcome these limitations. According to this methodology, a Simulink model is firstly Complied into C/C + + codes using the RTW ( Real Time Workshop) tool. Then a component that follows the Microsoft COM criterions is constructed on the basis of the generated codes. As an example, a simulation model of satellite attitude control dynamics is introduced. And the performance analyses are presented for different server models, viz. in - process server, local server and remote server, respectively, as well as different running modes, continuous vs. stepping. The results show that the executive efficiency is greatly improved.
出处
《计算机仿真》
CSCD
2005年第9期95-98,共4页
Computer Simulation
关键词
建模
仿真
性能分析
Modeling
Simulation
Performance analysis