摘要
针对传统半实物仿真中的一些问题,提出一种新的面向VxWorks的半实物仿真平台。设计了标准化、多接口、可扩展的仿真计算机硬件架构,解决了硬件I/O接口的多样性和扩展性问题。利用Simulink进行可视化建模,简化了模型的建立。通过Matlab的RTW工具箱自动生成面向硬件平台的基于实时操作系统VxWroks的可执行代码。自动代码生成提高了半实物仿真的开发效率,基于VxWorks的可执行代码保证了半实物仿真的实时性。对该仿真平台涉及的关键技术,如I/O接口驱动程序、针对硬件平台的VxWorks移植和代码生成以及实时模型参数修改和仿真数据采集等进行了研究和实现。
In order to solve some problems in the traditional hardware-in-the-loop simulation, a new hardware-in-the-loop simulation platform based on VxWorks is proposed. Standard and extensible hardware of simulation computer is designed to fit the variable and extensible I/O interface. Foundation of simulation models is simplified by using Simulink. Models are automatically transformed into executable code running on real time operation system VxWorks based on hardware platform through real time workshop of Matlab. The efficiency of development is improved through automatic code generation. The requirement of real time is satisfied by executable code running on VxWorks. Some key techniques in this platform, such as the I/O interface driver, the porting of VxWorks operation system over hardware platform, automatic code generation based on hardware platform, modification of model parameters and collection of simulation results in real time, are discussed.
出处
《计算机工程》
CAS
CSCD
北大核心
2007年第14期257-259,共3页
Computer Engineering
基金
航空科学基金资助项目"开放式的新航行系统数据链体系结构技术研究"(02F51070)