Simulink动态系统仿真的MATLAB

收藏

预览图
编号:69515519    类型:共享资源    大小:3.43MB    格式:PDF    上传时间:2020-03-27 上传人:hon****an IP属地:江苏
3.6
积分
关 键 词:
Simulink 动态 系统 仿真 MATLAB
资源描述:
Modeling Simulation Implementation SIMULINK Dynamic System Simulation for MATLAB Using Simulink Version 3 How to Contact The MathWorks 508 647 7000Phone 508 647 7001Fax The MathWorks Inc Mail 24 Prime Park Way Natick MA 01760 1500 Web Anonymous FTP server comp soft sys matlabNewsgroup support Technical support suggest Product enhancement suggestions bugs Bug reports doc Documentation error reports subscribe Subscribing user registration service Order status license renewals passcodes info Sales pricing and general information Using Simulink COPYRIGHT 1990 1999 by The MathWorks Inc The software described in this document is furnished under a license agreement The software may be used or copied only under the terms of the license agreement No part of this manual may be photocopied or repro duced in any form without prior written consent from The MathWorks Inc U S GOVERNMENT If Licensee is acquiring the Programs on behalf of any unit or agency of the U S Government the following shall apply a For units of the Department of Defense the Government shall have only the rights specified in the license under which the commercial computer software or commercial software documentation was obtained as set forth in subparagraph a of the Rights in Commercial Computer Software or Commercial Software Documentation Clause at DFARS 227 7202 3 therefore the rights set forth herein shall apply and b For any other unit or agency NOTICE Notwithstanding any other lease or license agreement that may pertain to or accompany the delivery of the computer software and accompanying documentation the rights of the Government regarding its use reproduction and disclo sure are as set forth in Clause 52 227 19 c 2 of the FAR MATLAB Simulink Stateflow Handle Graphics and Real Time Workshop are registered trademarks and the Target Language Compiler is a trademark of The MathWorks Inc Other product or brand names are trademarks or registered trademarks of their respective holders Printing History 1990First printing December 1996 Revised for Simulink 2 May 1997Revised for Simulink 2 1 online version January 1998Revised for Simulink 2 2 online version January 1999Revised for Simulink 3 Release 11 u i Contents 1 Getting Started To the Reader 1 2 What Is Simulink 1 2 How to Use This Manual 1 3 Application Toolboxes 1 5 The Simulink Real Time Workshop 1 10 Key Features 1 10 The Real Time Workshop Ada Extension 1 12 Key Features 1 12 Blocksets 1 14 The DSP Blockset 1 14 The Fixed Point Blockset 1 14 The Nonlinear Control Design Blockset 1 16 The Power System Blockset 1 16 2 Quick Start Running a Demo Model 2 2 Description of the Demo 2 3 Some Things to Try 2 4 What This Demo Illustrates 2 5 Other Useful Demos 2 5 ii Building a Simple Model 2 6 3 Creating a Model Starting Simulink 3 2 Creating a New Model 3 3 Editing an Existing Model 3 3 Entering Simulink Commands 3 3 Simulink Windows 3 5 Zooming Block Diagrams 3 6 Selecting Objects 3 7 Selecting One Object 3 7 Selecting More than One Object 3 7 Blocks 3 9 Block Data Tips 3 9 Virtual Blocks 3 9 Copying and Moving Blocks from One Window to Another 3 10 Moving Blocks in a Model 3 12 Duplicating Blocks in a Model 3 12 Specifying Block Parameters 3 12 Block Properties Dialog Box 3 13 Deleting Blocks 3 14 Changing the Orientation of Blocks 3 15 Resizing Blocks 3 15 Manipulating Block Names 3 16 Displaying Parameters Beneath a Block s Icon 3 17 Disconnecting Blocks 3 18 Vector Input and Output 3 18 Scalar Expansion of Inputs and Parameters 3 18 Assigning Block Priorities 3 19 Using Drop Shadows 3 20 Libraries 3 21 Terminology 3 21 iii Creating a Library 3 21 Modifying a Library 3 22 Copying a Library Block into a Model 3 22 Updating a Linked Block 3 23 Breaking a Link to a Library Block 3 23 Finding the Library Block for a Reference Block 3 24 Getting Information About Library Blocks 3 24 Browsing Block Libraries 3 25 Lines 3 27 Drawing a Line Between Blocks 3 27 Drawing a Branch Line 3 28 Drawing a Line Segment 3 28 Displaying Line Widths 3 31 Inserting Blocks in a Line 3 31 Signal Labels 3 32 Setting Signal Properties 3 34 Signal Properties Dialog Box 3 35 Annotations 3 37 Working with Data Types 3 38 Data Types Supported by Simulink 3 38 Block Support for Data and Numeric Signal Types 3 39 Specifying Block Parameter Data Types 3 43 Creating Signals of a Specific Data Type 3 43 Displaying Port Data Types 3 43 Data Type Propagation 3 43 Data Typing Rules 3 44 Enabling Strict Boolean Type Checking 3 45 Typecasting Signals 3 45 Typecasting Parameters 3 45 Working with Complex Signals 3 47 Summary of Mouse and Keyboard Actions 3 48 Creating Subsystems 3 51 Creating a Subsystem by Adding the Subsystem Block 3 51 iv Creating a Subsystem by Grouping Existing Blocks 3 52 Labeling Subsystem Ports 3 53 Using Callback Routines 3 53 Tips for Building Models 3 57 Modeling Equations 3 58 Converting Celsius to Fahrenheit 3 58 Modeling a Simple Continuous System 3 59 Saving a Model 3 61 Printing a Block Diagram 3 62 Print Dialog Box 3 62 Print Command 3 63 Specifying Paper Size and Orientation 3 64 Positioning and Sizing a Diagram 3 64 The Model Browser 3 66 Using the Model Browser on Windows 3 66 Using the Model Browser on UNIX 3 67 Tracking Model Versions 3 70 Specifying the Current User 3 70 Model Properties Dialog 3 72 Creating a Model Change History 3 76 Version Control Properties 3 77 Ending a Simulink Session 3 79 4 Running a Simulation Introduction 4 2 Using Menu Commands 4 2 Running a Simulation from the Command Line 4 3 v Running a Simulation Using Menu Commands 4 4 Setting Simulation Parameters and Choosing the Solver 4 4 Applying the Simulation Parameters 4 4 Starting the Simulation 4 4 Simulation Diagnostics Dialog Box 4 6 The Simulation Parameters Dialog Box 4 8 The Solver Page 4 8 The Workspace I O Page 4 17 The Diagnostics Page 4 24 Improving Simulation Performance and Accuracy 4 27 Speeding Up the Simulation 4 27 Improving Simulation Accuracy 4 28 Running a Simulation from the Command Line 4 29 Using the sim Command 4 29 Using the set param Command 4 29 sim 4 30 simset 4 32 simget 4 36 5 Analyzing Simulation Results Viewing Output Trajectories 5 2 Using the Scope Block 5 2 Using Return Variables 5 2 Using the To Workspace Block 5 3 Linearization 5 4 Equilibrium Point Determination 5 7 linfun 5 9 trim 5 13 vi 6 Using Masks to Customize Blocks Introduction 6 2 A Sample Masked Subsystem 6 3 Creating Mask Dialog Box Prompts 6 4 Creating the Block Description and Help Text 6 6 Creating the Block Icon 6 6 Summary 6 8 The Mask Editor An Overview 6 9 The Initialization Page 6 10 Prompts and Associated Variables 6 10 Control Types 6 12 Default Values for Masked Block Parameters 6 14 Tunable Parameters 6 14 Initialization Commands 6 15 The Icon Page 6 18 Displaying Text on the Block Icon 6 18 Displaying Graphics on the Block Icon 6 20 Displaying Images on Masks 6 21 Displaying a Transfer Function on the Block Icon 6 22 Controlling Icon Properties 6 23 The Documentation Page 6 26 The Mask Type Field 6 26 The Block Description Field 6 26 The Mask Help Text Field 6 27 Creating Dynamic Dialogs for Masked Blocks 6 28 Setting Masked Block Dialog Parameters 6 28 Predefined Masked Dialog Parameters 6 29 vii 7 Conditionally Executed Subsystems Introduction 7 2 Enabled Subsystems 7 3 Creating an Enabled Subsystem 7 3 Blocks an Enabled Subsystem Can Contain 7 5 Triggered Subsystems 7 8 Creating a Triggered Subsystem 7 9 Function Call Subsystems 7 10 Blocks That a Triggered Subsystem Can Contain 7 10 Triggered and Enabled Subsystems 7 11 Creating a Triggered and Enabled Subsystem 7 11 A Sample Triggered and Enabled Subsystem 7 12 Creating Alternately Executing Subsystems 7 12 8 Block Reference What Each Block Reference Page Contains 8 2 Simulink Block Libraries 8 3 Abs 8 11 Algebraic Constraint 8 12 Backlash 8 14 Band Limited White Noise 8 18 Bus Selector 8 20 Chirp Signal 8 22 Clock 8 24 Combinatorial Logic 8 25 Complex to Magnitude Angle 8 28 Complex to Real Imag 8 29 Configurable Subsystem 8 30 Constant 8 34 viii Coulomb and Viscous Friction 8 35 Data Store Memory 8 36 Data Store Read 8 38 Data Store Write 8 39 Data Type Conversion 8 41 Dead Zone 8 43 Demux 8 45 Derivative 8 49 Digital Clock 8 51 Discrete Filter 8 52 Discrete Pulse Generator 8 54 Discrete State Space 8 56 Discrete Time Integrator 8 58 Discrete Transfer Fcn 8 65 Discrete Zero Pole 8 67 Display 8 69 Dot Product 8 72 Enable 8 74 Fcn 8 76 First Order Hold 8 78 From 8 80 From File 8 82 From Workspace 8 85 Function Call Generator 8 88 Gain 8 89 Goto 8 91 Goto Tag Visibility 8 94 Ground 8 95 Hit Crossing 8 96 IC 8 98 Inport 8 99 Integrator 8 103 Logical Operator 8 108 Look Up Table 8 110 Look Up Table 2 D 8 113 Magnitude Angle to Complex 8 116 Manual Switch 8 118 Math Function 8 119 MATLAB Fcn 8 121 Matrix Gain 8 123 ix Memory 8 124 Merge 8 126 MinMax 8 129 Model Info 8 131 Multiport Switch 8 134 Mux 8 136 Outport 8 139 Product 8 143 Probe 8 145 Pulse Generator 8 146 Quantizer 8 148 Ramp 8 149 Random Number 8 150 Rate Limiter 8 152 Real Imag to Complex 8 154 Relational Operator 8 156 Relay 8 158 Repeating Sequence 8 160 Rounding Function 8 161 Saturation 8 162 Scope 8 163 Selector 8 173 S Function 8 175 Sign 8 177 Signal Generator 8 178 Sine Wave 8 180 Slider Gain 8 183 State Space 8 185 Step 8 187 Stop Simulation 8 189 Subsystem 8 190 Sum 8 191 Switch 8 194 Terminator 8 196 To File 8 197 To Workspace 8 199 Transfer Fcn 8 203 Transport Delay 8 206 Trigger 8 208 Trigonometric Function 8 210 xContents Uniform Random Number 8 212 Unit Delay 8 214 Variable Transport Delay 8 216 Width 8 218 XY Graph 8 219 Zero Order Hold 8 221 Zero Pole 8 222 9 Additional Topics How Simulink Works 9 2 Zero Crossings 9 3 Algebraic Loops 9 7 Invariant Constants 9 11 Discrete Time Systems 9 13 Discrete Blocks 9 13 Sample Time 9 13 Purely Discrete Systems 9 13 Multirate Systems 9 14 Sample Time Colors 9 15 Mixed Continuous and Discrete Systems 9 17 1 0 Model Construction Commands Introduction 10 2 How to Specify Parameters for the Commands 10 3 How to Specify a Path for a Simulink Object 10 3 add block 10 4 add line 10 5 bdclose 10 6 bdroot 10 7 xi close system 10 8 delete block 10 10 delete line 10 11 find system 10 12 gcb 10 14 gcbh 10 15 gcs 10 16 get param 10 17 new system 10 19 open system 10 20 replace block 10 21 save system 10 23 set param 10 24 simulink 10 26 1 1 Simulink Debugger Introduction 11 2 Using the Debugger 11 3 Starting the Debugger 11 3 Getting Help 11 4 Entering Commands 11 4 About Block Indexes 11 4 Accessing the MATLAB Workspace 11 4 Running a Simulation Incrementally 11 6 Stepping by Blocks 11 6 Stepping by Time Steps 11 7 Stepping by Breakpoints 11 8 Running a Simulation Nonstop 11 8 Setting Breakpoints 11 9 Breaking at Blocks 11 9 Breaking at Time Steps 11 11 Breaking on Nonfinite Values 11 11 xiiContents Breaking on Step Size Limiting Steps 11 12 Breaking at Zero Crossings 11 12 Displaying Information About the Simulation 11 13 Displaying Block I O 11 13 Displaying Algebraic Loop Information 11 14 Displaying System States 11 15 Displaying Integration Information 11 15 Displaying Information About the Model 11 17 Displaying a Model s Block Execution Order 11 17 Displaying a Block 11 17 Displaying a Model s Nonvirtual Systems 11 18 Displaying a Model s Nonvirtual Blocks 11 18 Displaying Blocks with Potential Zero Crossings 11 20 Displaying Algebraic Loops 11 20 Displaying Debug Settings 11 21 Debugger Command Reference 11 22 ashow 11 24 atrace 11 25 bafter 11 26 break 11 27 bshow 11 28 clear 11 29 continue 11 30 disp 11 31 help 11 32 ishow 11 33 minor 11 34 nanbreak 11 35 next 11 36 probe 11 37 quit 11 38 run 11 39 slist 11 40 states 11 41 systems 11 42 status 11 43 step 11 44 xiii stop 11 45 tbreak 11 46 trace 11 47 undisp 11 48 untrace 11 49 xbreak 11 50 zcbreak 11 51 zclist 11 52 A Model and Block Parameters Introduction A 2 Model Parameters A 3 Common Block Parameters A 7 Block Specific Parameters A 10 Mask Parameters A 24 B Model File Format Model File Contents B 2 Model Section B 3 BlockDefaults Section B 3 AnnotationDefaults Section B 3 System Section B 3 A Sample Model File B 4 xivContents 1 Getting Started To the Reader 1 2 What Is Simulink 1 2 How to Use This Manual 1 3 Application Toolboxes 1 5 The Simulink Real Time Workshop 1 10 Key Features 1 10 The Real Time Workshop Ada Extension 1 12 Key Features 1 12 Blocksets 1 14 The DSP Blockset 1 14 The Fixed Point Blockset 1 14 The Nonlinear Control Design Blockset 1 16 The Power System Blockset 1 16 1 Getting Started 1 2 To the Reader Welcome to Simulink In the last few years Simulink has become the most widely used software package in academia and industry for modeling and simulating dynamical systems Simulink encourages you to try things out You can easily build models from scratch or take an existing model and add to it Simulations are interactive so you can change parameters on the fly and immediately see what happens You have instant access to all of the analysis tools in MATLAB so you can take the results and analyze and visualize them We hope that you will get a sense of the fun of modeling and simulation through an environment that encourages you to pose a question model it and see what happens With Simulink you can move beyond idealized linear models to explore more realistic nonlinear models factoring in friction air resistance gear slippage hard stops and the other things that describe real world phenomena It turns your computer into a lab for modeling and analyzing systems that simply wouldn t be possible or practical otherwise whether the behavior of an automotive clutch system the flutter of an airplane wing the dynamics of a predator prey model or the effect of the monetary supply on the economy Simulink is also practical With thousands of engineers around theworld using it to model and solve real problems knowledge of this tool will serve you well throughout your professional career We hope you enjoy exploring the software What Is Simulink Simulink is a software package for modeling simulating and analyzing dynamical systems It supports linear and nonlinear systems modeled in continuous time sampled time or a hybrid of the two Systems can also be multirate i e have different parts that are sampled or updated at different rates For modeling Simulink provides a graphical user interface GUI for building models as block diagrams using click and drag mouse operations With this interface you can draw the models just as you would with pencil and paper or as most textbooks depict them This is a far cry from previous simulation packages that require you to formulate differential equations and difference equations in a language or program Simulink includes a comprehensive block 1 3 libraryofsinks sources linearandnonlinearcomponents andconnectors You can also customize and create your own blocks For information on creating your own blocks see the separate Writing S Functions guide Models are hierarchical so you can build models using both top down and bottom up approaches You can view the system at a high level then double click on blocks to go down through the levels to see increasing levels of model detail This approach provides insight into how a model is organized and how its parts interact After you define a model you can simulate it using a choice of integration methods either from the Simulink menus or by entering commands in MATLAB s command window The menus are particularly convenient for interactive work while the command line approach is very useful for running a batch of simulations for example if you are doing Monte Carlo simulations or want to sweep a parameter across a range of values Using scopes and other display blocks you can see the simulation results while the simulation is running In addition you can change parameters and immediately see what happens for what if exploration The simulation results can be put in the MATLAB workspace for postprocessing and visualization Model analysis tools include linearization and trimming tools which can be accessed from the MATLAB command line plus the many tools in MATLAB and its application toolboxes And because MATLAB and Simulink are integrated you can simulate analyze and revise your models in either environment at any point How to Use This Manual Because Simulink is graphical and interactive we encourage you to jump right in and try it For a useful introduction that will help you start using Simulink quickly take a look at Running a Demo Model in Chapter 2 Browse around the model double click on blocks that look interesting and you will quickly get a sense of how Simulink works If you want a quick lesson in building a model see Building a Simple Model in Chapter 2 Chapter 3 describes in detail how to build and edit a model It also discusses how to save and print a model and provides some useful tips Chapter 4 describes how Simulink performs a simulation It covers simulation parameters and the integration solvers used for simulation including some of 1 Getting Started 1 4 the strengths and weaknesses of each solver that should help you choose the appropriate solver for your problem It also discusses multirate and hybrid systems Chapter 5 discusses Simulink and MATLAB features useful for viewing and analyzing simulation results Chapter 6 discusses methods for creating your own blocks and using masks to customize their appearance and use Chapter 7 describes subsystems whose execution depends on triggering signals Chapter 8 provides reference information for all Simulink blocks Chapter 9 provides information about how Simulink works including information about zero crossings algebraic loops and discrete and hybrid systems Chapter 10 provides reference information for commands you can use to create and modify a model from the MATLAB command window or from an M file Chapter 11 explains how to use the Simulink debugger to debug Simulink models It also documents debugger commands Appendix A lists model and block parameters This information is useful with theget paramandset paramcommands described in Chapter 10 Appendix B describes the format of the file that stores model information Although we have tried to provide the most complete and up to date information in this manual some information may have changed after it was completed Please check the Known Software and Documentation Problems delivered with your Simulink system for the latest release notes Application Toolboxes 1 5 Application Toolboxes One of the key features of Simulink is that it is built on top of MATLAB As a result Simulink users have direct access to the wide range of MATLAB based tools for generating analyzing and optimizing systems implemented in Simulink These tools include MATLAB Application Toolboxes specialized collections of M files for working on particular classes of problems Toolboxes are more than just collections of useful functions they represent the efforts of some of the world s top researchers in fields such as controls signal processing and system identification MATLAB Application Toolboxes therefore let you stand on the shoulders of world class scientists All toolboxes are built using MATLAB This has some very important implications for you Every toolbox builds on the robust numerics rock solid accuracy and years of experience in MATLAB You get seamless and immediate integration with Simulink and any other toolboxes you may own Because all toolboxes are written in MATLAB code you can take advantage of MATLAB s open system approach You can inspect M files add to them or use them for templates when creating your own functions Every toolbox is available on any computer platform that runs MATLAB Here is a list of professional toolboxes currently available from The MathWorks This list is by no means static more are being created every year The Communications Toolbox The Communications Toolbox provides an integrated set of tools for accelerating the design analysis and
内容简介:
-
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:Simulink动态系统仿真的MATLAB
链接地址:https://www.renrendoc.com/p-69515519.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!