计算机应用 ›› 2010, Vol. 30 ›› Issue (06): 1635-1637.

• 软件过程技术与中文信息处理 • 上一篇    下一篇

基于RTX的建模与实时仿真软件YH-RTSIM的设计

蒋志文   

  1. 国防科技大学计算机学院
  • 收稿日期:2009-12-24 修回日期:2010-02-10 发布日期:2010-06-01 出版日期:2010-06-01
  • 通讯作者: 蒋志文
  • 基金资助:
    国家自然科学基金;国家自然科学基金资助项目

Design of modeling and real-time simulating software YH-RTSIM based on RTX

Jiang ZhiWen   

  • Received:2009-12-24 Revised:2010-02-10 Online:2010-06-01 Published:2010-06-01
  • Contact: Jiang ZhiWen

摘要: 为了满足新型飞行器半实物仿真更高的实时性要求,基于Windows的实时扩展包RTX开发建模与实时仿真软件YH-RTSIM,设计了由仿真建模集成环境、Windows进程和RTSS进程组成的软件结构,不仅可提高实时性,而且原有用户的仿真程序只需很小的修改就可编译运行。设计了基于共享内存的进程间通信算法来实现实时数据存储和显示,设计了帧时间控制算法保证精确的帧时间。测试和应用表明:YH-RTSIM运行正确, 仿真帧时间的误差为-0.0004ms~0.0004ms,小于1μs (0.001ms),能满足飞行器半实物仿真的需要。

关键词: RTX, 实时仿真, 体系结构, 帧时间

Abstract: In order to meet the higher real-time requirements of hardware-in-loop simulation of new flight vehicles, this paper developed the modeling and real-time simulating software YH-RTSIM based on Real-Time eXtension (RTX), and designed the architecture of software YH-RTSIM that consisted of integration environment of modeling, Windows process and RTSS process, can not only enhance performance of real-time, but also run old simulation programs of user after little change, and designed the communication algorithm between processes based on share memory to carry out real-time data storing and displaying, and designed the control algorithm of frame time to ensure precise frame time. The tests and applications demonstrate that YH-RTSIM can run correctly, difference of frame time of simulation is from -0.0004ms to 0.0004ms during simulating, less than 1 μs (0.001ms), which can meet the requirements of hardware-in-loop simulation of new flight vehicles.

Key words: RTX, Real-time Simulating, Architecture, Frame Time