Research and Design on Real-time Control Experiment of Single Inverted Pendulum System in MATLAB
- Author
- LiuShiPeng
- Advisor
- ChenJinRun
- School
- Chongqing University
- Major
- Pattern Recognition and Intelligent Systems
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 1,377
- Citations
- 12
Abstract
Inverted Pendulum is a nonlinear, coupling, variable and natural unsteadiness system. During the control process, pendulum can effectively reflect many pivotal problems such as equanimity, robust, follow-up and track, therefore, it is a perfect model used to testing various control theories. Because of the complexity of this system and the real-time requirement, it needs enormous development to realize the control of the inverted pendulum, and it is very hard to float an efficient experiment for the students. Updating the experiment system become more and more exigent. MATLAB based Hardware in Loop Simulation is a sound way to solve this problem, and this technology is significant to the research of the control strategy of the inverted pendulum, even extend to the development of other experiment devices.This dissertation, based on the study in the theory and application of Hardware in Loop technology, brings forward a tentative plan to realize the real-time control of the inverted pendulum using MATLAB. After carefully analysis and comparison, it decides to use MATALB RTW real-time toolbox to build a real-time control workspace. This workspace administrates the external hardware to control the inverter pendulum by downloading the simulation model generated by Simulink to the target real-time kernel.This dissertation carefully analyses the system construction of the two models of single PC and double PC in MATLAB RTW, and presents how to develop the driver of the third-party devices for the real-time kernel of xPC target, which is a compatible way to use this workspace for the developer.This dissertation designs a series of single inverted pendulum experiments for the undergraduate students, including object modeling, classic control theory and modern control theory. The experiments integrate the mathematical simulation and online real-time control, making the Simulink model sketch as a control station. Experimenters can concentrate on the controller design and parameters adjustment without intricate programming. Using the function of data logging, Experimenters can observe the system historical trend to analyze the control process and tune the corresponding parameters.This dissertation validates the availability of this tentative plan though the inverter pendulum real-time control experiment, and analyzes the difference between mathematical simulation and real-time control. In addition, the successful application in the level control of water tank illuminates the fitness and universality of the workspace.In the end, the dissertation prospects the performance optimize and function enrichment of this <WP=7>workspace, and point out the significance of Hardware in Loop Simulation technology in the continuable development of university laboratory. It is an effective tool used in the experiment design and theory research.
Table of contents
The Chinese summary 4-6
English summary 6-10
1 Introduction 10-16
1.1 issues raised and research intended 10-11
the 1.1.1 issues raised 10
1.1.2 Research significance and application prospects 10-11
the 1.2 research status The main contents of this study 11-12
1.3 12-16
1.3.1 inverted pendulum control system hardware in the loop simulation platform design 12-13
1.3. 2 based on the platform of the experimental design problem facing 13
1.3.3 research and focus 13-15
1.3.4 paper structure to arrange a 15 -16
2 system programs and related issues 16-34
2.1 Overview of the hardware in the loop simulation technology 16-19
2.2 inverted pendulum system structure and working principle 19
2.3 system implementations and select 19-32
2.3.1 program proposed 19-20
2.3.2 MATLAB RTW System Overview 20-26
2.3.3 Real-time Windows Target program 26-27
2.3.4 xPC Target program 27-29
2.3. 5 system real-time analysis 29-32
2.3.6 program to determine 32
2.4 Chapter Summary 32-34
3 hardware in the loop simulation experimental platform design 34-44
3.1 experimental platform The design ideas 34
3.2 xPC Target real-time kernel in the development of third-party device drivers 34-36 <br / > 3.3 build the experimental platform 36-42
3.3.1 Simulink environment to create a simulation model 36-38
3.3.2 Dual communication connection and production target startup disk 40-41
3.3 38
3.3.3 create real-time applications and download 38-40
3.3.4 of the target program control and signal tracking .5 data storage to achieve 41-42
3.4 Chapter Summary 42-44
straight single-stage inverted pendulum control experiment designed 44-70 <br / > 4.1 Experimental design ideas 44-45
4.2 system mathematical models 45-48
the 4.2.1 system differential equations derivation 45-47
the 4.2.2 system transfer function of the derivation 47-48
of 4.3 experimental design 48-66
4.3.1 PID controller adjusts the experimental 48-51
4.3.2 root locus method designed controller experiment 51-56
4.3.3 frequency domain response method validation experiments 56-59
4.3.4 modern control theoretical experiments 59-66
4.4 system human-computer interface design 66-69
4.4.1 graphical user interface design 66-68
4.4 .2 callback procedures designed 68-69
4.5 Chapter Summary 69-70
5 system The test and results analysis 70-76
5.1 system test ideas 5.2 testing process and the results of analysis of 70
70-73
5.3 experimental platform in the tank water level control system test 73-75 <br / 5.4 Chapter Summary 75-76
6 Conclusion and Outlook the 76-78
6.1 thesis concludes 76
6.2 for further work outlook 76-78
Acknowledgements 78-80
Reference 80-82
Appendix: A. part m file source code 82-87
Appendix B. part of the original I / O device driver xPC Target real-time kernel code 87-92
Appendix C. of papers published during the master's degree and research 92-93
Related dissertations
- Design and Realization of Experiment Platform of Control System in MATLAB
- Stability Control of Inverted Pendulum System
- Design of Arbitrage Strategy Based on Stock Index Futures
- The Research and Development of Networked Laboratory Based on Invertedpendulum Control System
- The Balance Control of Single Linear Inverted Pendulum Based on Dspace Simulation Platform
- The Design of Automatic Fire Control System Based on Hardwarc-in-the-loop-simuiation
- The Research and Application of Central Air-conditioning Group Control Strategy Based on Trnsys
- Multi-robot Formation Control Technology Research Based on Improved Particle Swarm Optimization Algorithm
- A Design and Implementation for Two-wheeled Self-balancing Mobile Platform
- Research on Data Fusion Algorithms in Wireless Sensor Network for Indoor Environment Monitoring System
- The Research on PMSM Sensorless Vector Control by High Frequence Signal Injection
- Research of Humidity Sensor Based on STM8S Single-chip Microcomputer and Its Calibration-check System
- Research on the Application of Flood Forecast on Neural Network
- Research on Genetic Algorithm Optimization-based Neural Network PID Control Strategy of Electro-hydraultc Position Servo System
- A New Algorithm for Conformity and Its Application
- Research on automobile fault diagnosis based on Neural Network
- Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
- Research Stability Control&Experimental on Single-stage Inverted Pendulum System
- Nonlinear Time Series Model-Based Predictive Control Applied to Swing-up of Inverted Pendulum
- Study on the Stability Control of Double Inverted-pendulum System