SIMULINK_Dynamic System Simulation for MATLAB
For a useful introduction that will help you start using Simulink quickly, takea 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 ofhow Simulink works. If you want a quick lesson in building a modelContentsGetting StartedTo the reader12What Is simulink?1-2How to Use This manual1=3Application Toolboxes1-5The Simulink Real-Time Workshop1-10Key featurel-10The Real-Time Workshop Ada extension........ 1-12ey features1-12Blocksets鲁1-14The dsp blockset1-14The Fixed-Point blockset..,,,,,,,,,,,,,1-14The nonlinear Control design blockset1-16The Power System Blockset1-16Quick Start2「Running a Demo Model2-2Description of the Demo23Some things to Try2-4What This Demo illustrates,,,.,2-5Other Useful demos25Building a Simple Model......,,,,,,,2-6Creating a Model3Starting Simulink3-2Creating a New model3-3Editing an Existing Model3→8Entering simulink Commands3-3Simulink windows····.85Zooming Block Diagrams3-6Selecting objects.......Selecting One ObjectSelecting More than One Object37Blocks3-9Block Data Tips39Virtual blocks.,,,3-9Copying and Moving Blocks from One window to Another . 3-10Moving blocks in a model.,3-12Duplicating Blocks in a Model......,....3-12Specifying Block Parameters3-12Block Properties Dialog Box,,,,,,,,,,,,,,3-13Deleting Blocks3-14Changing the Orientation of Blocks3-15ResizingBlocks3-15Manipulating Block Names3-16Displaying Parameters Beneath a Block's Icon3-17Disconnecting Blocks3-18Vector Input and output..........3-18Scalar Expansion of Inputs and Parameters3-18Assigning Block Priorities..,,,,3-19Using Drop Shadows3-20Libraries321Terminology3-21Creating a library .................. 3-21Modifying a Library...........3-22Copying a library block into a Model3-22Finding the library block for a Reference bloc∵·…,…·.3-23Updating a Linked BlockBreaking a Link to a Library block3-233-24Getting Information About Library blocks,,,,3-24Browsing Block Libraries3-25Lines327Drawing a Line Between Blocks3-27Drawing a Branch LinDrawing a Line segment,……3-28laying Line widths8-31Inserting Blocks in a line.,.,,,,,3-31Signal labels3-32Signal Properties dialog BoxSetting Signal Properties,,,8-348-3Annotations..,3-37Working with Data Types3-38Data Types Supported by simulink3-38Block support for Data and Numeric Signal Types3-39Specifying Block Parameter Data Types .................3-43Creating Signals of a Specific Data Type3-43Displaying port data T3-43Data Type Propagation..,,,,,3-43Data Typing rulesEnabling Strict Boolean Type Checking.......... 3-45Typecastig Signal..,3-45Typecasting Parameters.,,,,,,3-45Working with Complex Signals3-47Summary of Mouse and Keyboard actionsCreating Subsystems.,3-51Creating a Subsystem by Adding the subsystem Block3-51Creating a Subsystem by grouping Existing Blocks..... 3-52Labeling Subsystem Ports.....,..3-53Using Callback Routines3-53Tips for Building Models3-57Modeling Equations....,...·3-58Converting Celsius to Fahrenheit,,3-58Modeling a Simple Continuous System ......... 3-59Saving a model3-61Printing a Block Diagram,,,,,,,,,,,,.....,3-62Print Dialog box3-62Print command3-63Specifying Paper Size and Orientation3-64Positioning and Sizing a diagr3-64The model browser..,.,,.,,.,,3-66ng the model Browser on Windows3-66Ising the model Browser on UNIXTracking Model Versions370Specifying the Current User370Model Propertics Dialog372Creating a Model Change History,,,,,,,,,,,,,376Version Control Propcrties3-77Ending a Simulink Session379Running a simulation4Introduction··············42Using Menu commands42Running a Simulation from the Command Line,,±-3Running a Simulation Using Menu Commands...........4-4Setting Simulation Parameters and Choosing the solver...4-4Applying the Simulation ParametersStarting the Simulation4-4Simulation Diagnostics Dialog Box4-6The Simulation Parameters Dialog Box48The Solver Page...........4-8The Workspace I/o Page4-17The Diagnostics Page4-24Improving Simulation Performance and Accuracy427Speeding Up the Simulation.....,.,,,.,427Improving Simulation Accuracy,,,428Running a simulation from the Command Line..... 4-29Using the sim Commandb垂4-29Using the set_param Command4sIm··.···4-30simset···4-82imet436Analyzing Simulation Results5「Viewing Output Trajectories5-2Using the Scope Block5-2Using Return VariablesUsing the To Workspace Block.53Linearization5-4Equilibrium Point Determination57linfu59trim5-13Using Masks to Customize BlocksIntroduction6-2A Sample Masked Subsystem63Creating Mask Dialog Box Prompts······6-4Creating the Block Description and Help Text6-6Creating the Block Icon6-6S1ummary68The mask editor: An overview6-9The Initialization Page ................ 6-10Prompts and associated variables.6-10Control Types.,,,,,,,,,,,,,,,6-12Default values for masked block parameters.6-14Tunable paramcters6-14Initialization commands...6-15The Icon Page6-1Displaying Text on the Block Icon...6-18Displaying Graphics on the Block Icon...620Displaying Images on Masks6-21Displaying a Transfer Function on the Block Icon6-22Controlling Icon PropertiesThe Documentation Page6-26The Mask Type Field····6-26The Block Description Field··6-26The Mask help Text Field6-27Creating Dynamic Dialogs for Masked Blocks6-28Setting Masked Block Dialog Parameters6-26Predefined Masked Dialog Parameters6-29Conditionally Executed Subsystems7Introduction7-2Enabled SubsystemsCreating an Enabled Subsystem.........7-Blocks an Enabled Subsystem Can Contain75Triggered Subsystems.............7-8Creating a Triggered Subsystem. ............ 7-9Function-Call Subsystems7-10Blocks That a Triggered Subsystem Can Contain7-10Triggered and Enabled Subsystems.7-11Creating a Triggered and Enabled Subsystem....... 7-11A Sample Triggered and Enabled Subsystem7-12Crcating Alternately Executing Subsystems7-12Block reference8What Each Block Reference Page Contains........ 8-2Simulink block libraries···········8-11Algebraic Constraint .....8-12Backlash8-14Band-Limited white noise垂垂......,8-18Bus selector....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,8-20Chirp Signal822Clock824Combinatorial Logic.....,825Complex to Magnitude-Angle828Complex to Real-Imag···········8Configurable subsystem南垂,,,,8-30Constant.8-34Coulomb and viscous friction,..,,,,,8-35Data Store memory836Data Store read.8-38Data store write839Data Type Conversion ................................8-41Dead zone8=43Demux8-45Derivative.,8-49Digital Clock8-51Discrete filter8-52Discrete pulse generator翻··854Discrete State-Space...,,,,8-56Discrete-Time Integrator8-58Discrete Transfer fcn..,,,,,,,,,,,,,,,,8-65Discrete Zero-Pole8-67splay869Dot product872Enable874F876First-Order hold···878fre880F」File88FWorkspace8-8Function-Call Generator888Ga889Goto8-91Goto Tag Visibility894round895Hit cross896·898Inport899Integrator...8-103Logical Operator8-108-Up ta8-110Look-Up Table(2-D).....8-113Magnitude-Angle to Comple8-116Manual sy8-118Math Funct8119MATLAB Fen8121Matrix gai8-12
用户评论