节点文献

通用仿真测试系统研究

【作者】 乔海泉

【导师】 梁加红;

【作者基本信息】 国防科学技术大学 , 控制理论与控制工程, 2002, 硕士

【摘要】 军用测试设备的自动化是武器装备发展的重要方向,测试软件的研制是系统开发中的重点和难点之一。本文提出利用MATLAB工具Simulink、Real-Time Workshop(RTW)和实时操作系统RTLinux组建通用仿真测试系统,可使用户通过图形化的操作自动生成测试程序。 Simulink具有强大的建模仿真功能和友好的图形化界面,RTW能将Simulink模型转化成C代码。但是生成的C代码只能在DOS,Windows和VxWorks等几种操作系统下运行,它们都不太适于作为测试平台。本文选择具有硬实时功能的操作系统RTLinux作为测试平台,以MATLAB、Simulink和RTW为开发工具,成功地将RTW生成的代码移植到RTLinux下,使用户可在Simulink下建模,自动生成RTLinux下的测试程序。 本文首先介绍RTW,分析了C代码的生成过程和生成代码的结构,然后从设计思想到程序开发详细介绍了RTLinux,并通过对RTLinux的部分源代码进行分析,提出了改进其实时性的方法。在此基础上,讨论了如何改造RTW生成的C代码,使之能运行于RTLinux环境下,其中重点研究了生成程序与Simulink的通信以及生成代码自动下传到目标机的方法和实现。最后通过实验证实了通用仿真测试系统是可行的,能较大地提高工作效率。

【Abstract】 The automatization of military test system is the important trend of arms development. Developing software for the test system is an important and hard task. This paper presents a general simulation test system, which makes use of Simulink, Real-Time Workshop (RTW) and real-time operating system RTLinux. The system can generate test programs only through graphical operation.Simulink has the powerful capability of modelling and simulation, and has friendly graphical interface. RTW can generate C code from Simulink model while the C code can only run in DOS, Windows and VxWorks which are not suitable enough to test system. This paper chooses hard real-time operating system RTLinux as the test platform, and uses MATLAB, Simulink, RTW as development tools, successfully makes the RTW generated code run in RTLinux, it allows users to model in Simulink and run the test programs in RTLinux.In this paper, RTW is introduced first, including the code generation procedure and the architecture of generated code. Next, RTLinux is introduced in detail, including the design ideas and program development. Also, part of RTLinux source code is analysed and some methods are presented to improve the real-time ability of RTLinux. Based on the above, this paper discusses how to make the generated code run in RTLinux. Especially, the communication between generated program and Simulink, the method and implementation of how to download generated code to target machine automatically are researched. At last it is proved through an experiment that the general simulation test system can work well and can efficiently improve people work.

  • 【分类号】TP274;TP391.9
  • 【被引频次】5
  • 【下载频次】311
节点文献中: 

本文链接的文献网络图示:

本文的引文网络