Font Size: a A A

Research And Implementation Of Real-Time Simulation Using RTX-based MATLAB

Posted on:2007-03-21Degree:MasterType:Thesis
Country:ChinaCandidate:C J RenFull Text:PDF
GTID:2178360215470407Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
MATLAB has far-ranging application in system simulation realm because of its convenient, scalable, graphical modeling. But MATLAB's lacking of the capability of real-time simulation limits its application in real-time simulation realm. So, research on simulation technology of RTX-based MATLAB will make big contribution to the realization and application of real-time simulation which has high demand for the frame time.After the real-time trait of Windows and modeling&simulation of MATLAB and the theory of RTX is researched and analyzed, a real-time simulation prototype system of MATLAB based on RTX is designed and realized in this article.Main work and innovations of this article are as fellows:1) Three methods to improve the real-time performance of Windows are analyzed and compared; the theory of RTX is studied; the real-time performance of environment and network communication of both Windows and RTX is tested and compared by means of experiment.2) The performance of the method of S-Function, which is used to realize real-time simulation, is improved by using high precise timer and improved real-time control. A technique of adding real-time control to the C/C++ source codes generated by RTW to fulfill the real-time simulation is put forward. The correctness of this method and performance of real-time is tested via experiments.3) Automatic building of RTSS project is realized by writing the dsp file in notepad mode combining with making use of the structure of RTSS project; The high frequent data and messages communication between the Win32 processes and the RTSS processes is figured out by sharing the pre-locked physical memory, which is one method of IPC; The synchronization and mutex between computing process and display process is realized by means of simulation result queue.4) The real-time serial communication and real-time TCP/IP communication in simple network which two computers linked together of MATLAB is realized by editing and encapsulating S-Functions in C under RTSS environment.5) The structure of real-time simulation prototype system based on MATLAB and RTX is put forward. At the same time, the system was approved to be right and the frame-time can achieve 0.25ms via lots of experiments at last.The real-time simulation of MATLAB based on RTX makes use of the tremendous ability of MATLAB, and has the merit of excellent real-time. The least frame-time of this system can achieve 0.25ms which has been testified by lots of research and experiments.
Keywords/Search Tags:MATLAB, RTX, RTSS, Real-Time Subsystem, Real-Time Simulation, S-Function, MATLAB, Real-Time communication, Real-Time Simulation Platform
PDF Full Text Request
Related items