Embedded computer system has been widely used in many fields because of its small volume, light weight, low-power and high dependability. Under the background of the applications of embedded system in the maintenance and test for weapon equipments, an embedded system platform for simulation and test is designed and implemented in this dissertation, which is easy to cut and extend. The method of development on this platform is presented as well. The tested system is rapidly modeled and simulated with Matlab/Simulink on the host computer and the embedded real-time code is automatically generated by RTW. Then the code is cross compiled and burnt into the hardware, consequently the real-time simulation and test can be started. The errors in design and the inaccuracy in modeling can be easily found by this method and the developer can exploit the products faster and more efficiently.This dissertation is divided into several parts as follows: Firstly, the dissertation presented the background and the application requirements, analyzed the application and development tendency of the embedded computer system in the weapon equipments and investigated the-state-of-art of simulation test platform at home and abroad and the application of simulation test technique. Secondly, the overall design for the embedded real-time simulation test platform was given based on the idea of the platform-based design and Model Driven Architecture. This dissertation selected ARM processor as the core of Hardware platform, the embedded real-time Linux as the software platform and Matlab/Simulink/RTW as the development environment. Thirdly, by analyzing the real-time performance of the Linux kernel, this dissertation used the Real-Time Application Interface to enhance the hard real-time performance for the Linux kernel and transplanted the real-time Linux RTAI into the ARM board. The interface technique between embedded Linux RTAI and Matlab/Simulink/RTW was studied. Finally, based on the research of the process of building the RTW embedded real-time program and the mechanism of code automatic generation, Embedded Linux RTAI Target was exploited, the code specialized for the embedded Linux RTAI system was automatically generated. The model of moonlet attitude control system is used to prove the feasibility of this method. |