Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2012, Vol. 38 ›› Issue (3): 14-18.

• Networks and Communications • Previous Articles     Next Articles

General Real-time Simulation System of Constructing/Substituting Models Rapidly

XU Song, SUN Xiu-xia, DONG Wen-han   

  1. (College of Engineering, Air Force Engineering University, Xi’an 710038, China)
  • Received:2011-07-25 Online:2012-02-05 Published:2012-02-05

一种快速构建/替换模型的通用实时仿真系统

徐 嵩,孙秀霞,董文瀚   

  1. (空军工程大学工程学院,西安 710038)
  • 作者简介:徐 嵩(1985-),男,博士研究生,主研方向:先进控制理论与应用;孙秀霞,教授、博士、博士生导师;董文瀚,讲师、博士
  • 基金资助:
    国家自然科学基金资助项目(60904038)

Abstract: A method of real-time simulation system is discussed based on synthesizing the benefits of the Simulink/Real-time Workshop(RTW) and the Real-time eXtension(RTX) for Windows. Rapid modeling and encapsulating is implemented by high-powered software and self-defining VC project respectively, which depends on building a Real-time Dynamic Linkable Library(RtDll) composed of model codes generated by RTW. A simulation engine is designed that can load/unload models dynamically and give attention to both decoupling and real-time intercommunication between the model and the engine, which settles for the requirements of transmission model’s input/output information in time and parameter-tuning online. Experiments indicate that the system improves the real-time performance of simulation and gets the identical results as running on Simulink.

Key words: real-time simulation, simulation system design, Real-time eXtension(RTX) subsystem, Real-time Workshop(RTW)

摘要: 提出一种综合运用实时工具箱(RTW)与Windows实时扩展子系统(RTX)构建实时仿真系统的方案。采用实时动态链接库(RtDll)形式封装由RTW生成的模型代码,实现由成熟软件快速建模并由自定义VC工程快速封装的模型。根据仿真过程设计可动态加/卸载仿真模型的仿真引擎,兼顾模型与引擎的解耦和实时交互,实现模型输入输出信息的及时传递和模型参数的在线调整。该系统在运行结果与Simulink一致的同时提高了仿真实时性,适用于快速建模与实时仿真实验。

关键词: 实时仿真, 仿真系统设计, 实时扩展子系统, 实时工具箱

CLC Number: