摘要
提出一种综合运用实时工具箱(RTW)与Windows实时扩展子系统(RTX)构建实时仿真系统的方案。采用实时动态链接库(RtDll)形式封装由RTW生成的模型代码,实现由成熟软件快速建模并由自定义VC工程快速封装的模型。根据仿真过程设计可动态加/卸载仿真模型的仿真引擎,兼顾模型与引擎的解耦和实时交互,实现模型输入输出信息的及时传递和模型参数的在线调整。该系统在运行结果与Simulink一致的同时提高了仿真实时性,适用于快速建模与实时仿真实验。
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.
出处
《计算机工程》
CAS
CSCD
2012年第3期14-18,共5页
Computer Engineering
基金
国家自然科学基金资助项目(60904038)
关键词
实时仿真
仿真系统设计
实时扩展子系统
实时工具箱
real-time simulation
simulation system design
Real-time eXtension(RTX) subsystem
Real-time Workshop(RTW)