Simulink / Stateflow simulation principle and the realization of
- Author
- ShiZuo
- Advisor
- LiYi
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 297
- Citations
- 1
Abstract
With the swift development of automation and wide use of computer in the field of industry, configuration software plays an important role in industry control system. The concept of configuration was introduced into industry control accompanied with Distributed control system. Configuration software provides a set of methods which could construct control process and interface in the Building Block Approach. Its features include real-time multi-task, open interface, flexibility and dependability.MATLAB based platiform and Simulink/Stateflow development environment are widely used in modeling and simulating system in the domain of control system. Unlike traditional industry control software, model-based design (MATLAB) has better universalization. Such development environment provides the visual numerical analysis development environment, which mainly based on Matrix and Vector computation. Simulink offers a block diagram based development environment to run and simulate dynamic systems. And Stateflow uses flow graph and state charts to implement event-driven system that based on HSM (hierarchy state machine).Generated from Stateflow, S-function Agent could be used to connect Simulink model seamlessly, in order to develop complex system model. Furthermore, Real-Time workshop and Stateflow Coder could combine together to generate Simulink/Stateflow model descripted by C programming language. Users could utilize such feature to test and modify code, as well as to interactively run with codes outside MATLAB, Simulink. Additionally, users could utilize generated code into virtual or real-time application, including accelerated simulation, rapid prototyping and hardware-in-the-loop simulation test. System simulation is the technology that, based on similarity principle, rapid prototyping and expertise in certain area, utilizes system model to dynamically test real or virtual system. And because computers are usually used to implement simulation, it also named computer simualtion.Firstly, the thesis introduces the modeling elements and mechanism of Simulink/Stateflow model, and analyses the system simulation principle as well as the process of modeling and simulating dynamical system. Secondly, by analyzing the configuration technology and prototyping program architecture of Simulink/Stateflow, the thesis designs and implements the configuration and simulation system, including graphical configuration sub-system, simulation strategy interpretation sub-system and Database store sub-system. The first sub-system includes three modules respectively, building graph elements, graph data storage and animation. For the second sub-system, besides implementing many simulation algorithms, I analyze and implement simulation process and module sorting mechanism. Finaly, the thesis offers some ideas to implement Stateflow HSM based on Quantum Programming.
Table of contents
Abstract 4-5
ABSTRACT 5-9
Chapter Introduction 9-11
1.1 Background and Significance 9
1.2 research status 9-10
1.3 topics sources 10
1.4 research projects content 10-11
Chapter SIMULINK / STATEFLOW configuration simulation mechanism outlined 11-35
2.1 configuration software infrastructure 11-14
2.1.1 configuration software structure and function 11-12
2.1.2 Model-Based Design (Model-based Design) 12-14
2.2 MATLAB Overview 14-15
2.3 SIMULINK mechanisms outlined 15-19
2.3.1 Simulink modeling elements 16-19
2.4 STATEFLOW mechanisms outlined 19-26
2.4.1 finite automata and UML state diagram overview of the theory 19-21
2.4.2 Stateflow modeling elements 21-23
2.4.3 Simulink / Stateflow form of language to describe 23-24
2.4.4 Automatic code generation mechanism 24-26
2.5 simulation schematic overview 26-35
2.5.1 Dynamic System Modeling 27-30
2.5.2 Dynamic System Simulation 30-32
2.5.3 Simulink modeling and simulation 32-35
Chapter configuration simulation system design 35-38
3.1 configuration simulation system's basic functions 35
3.2 configuration simulation system design framework 35-37
3.3 development tools and platforms 37-38
Chapter graphical configuration system design and implementation 38-53
4.1 graphical configuration module design 38-39
4.2 graphical configuration module implementation 39-51
4.2.1 Generating Module in 40-46
4.2.2 animation connection module implementation 46-47
4.2.3 Data Management Module Implementation 47-50
4.2.4 Smart Cable 50-51
4.3 Testing and summary 51-53
chapter explains the system simulation strategy analysis and implementation 53-74
5.1 simulation algorithm analysis and implementation 53-58
5.2 operating mechanism simulation analysis 58-62
5.2.1 Simulink RTW prototype application framework 58-59
5.2.2 operating mechanism simulation framework designed 59-62
5.3 simulation run mechanism to achieve 62-67
5.3.1 module ordering 62-65
5.3.2 Analysis and implementation of nested structures 65-66
5.3.3 Algebraic loop solution to the problem 66-67
5.4 STATEFLOW Mechanism and realization of ideas 67-71
5.4.1 Event-driven mechanism 67-68
5.4.2 states to enter, execute and exit procedures 68-69
5.4.3 Stateflow state diagram realization of ideas 69-71
5.5 Testing and summary 71-74
Chapter Summary and Outlook 74-75
Thanks 75-76
References 76-78
Related dissertations
- Research and Development on Configuration Platform of Power Distribution Supervisory Control System
- Design of Distributed Control System Configuration Software
- Development of Configuration Software for Engine Assembly Monitor System
- Design and Development of Production Process Monitoring and Controlling System for Potassium Ammonium Chloride
- Design of Monitoring System in Oilfield Metering Station Based on PLC
- Research on Tunnel Monitoring System Key Technology
- Automatic Monitoring System for Preparation and Pumping of the Filling Paste
- Design and Implementation of Monitoring System for Industrial Rice Breeding
- The Research and Development of Intelligence Greenhouse Control System
- Design and Implementation of Heilongjiang Bayi Agricultural University Campus Landscape Control System
- Design and Implementation of Automatic Water Supply System Base on MCGS Configuration Software and Programmable Logic Controller
- Based on Configuration Technology of Touch Screen Controller Design and Realization
- Research on Experiment Teaching Platform of PLC Based on Technology of Virtual Simulation and Touch Screen
- The Control System Design of the Submarine Plough Engineering Trencher
- The Design and Implementation of the Automation System for Water Conservation
- Research of Control Svstem of Automotive Engine Timing Chain Wear Test Rig
- Research and Development of Data Communication Technology in Engine Monitoring System
- Research of the Aircraft Electrical Loads Computer Monitoring System Based on PLC
- Research on CNC Piston Lathe Unit System Based on CPAC
- Research on Realtime Monitoring and Fault Diagnosis System and Its Key Technology Oriented on BIW Welding Process