MATLAB SIMDRIVELINE RELEASE NOTES Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Non MATLAB SIMDRIVELINE RELEASE NOTES. Getting Started with Simulink Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Getting Started with Simulink

Getting Started with SimulinkOverview of MATLAB Modeling/ Simulation gEnvironmentOrientation 2008 | Jamie Cassels, QC, Vice-President Academic and Pro

Page 2 - Applications

Complex System Model from Basic Building Blockspy gVehicle and ControlVehicle and Control

Page 3 - ) throughout the development

Simulink Library (blocks)Simulink Library (blocks)

Page 6 - Eastman’s Presentation

Key Multiphysics Modeling ToolboxKey Multiphysics Modeling Toolbox Stateflow™Design and simulatestate machinesandStateflowDesign and simulate state ma

Page 7

Modeling Dynamic Systems in SimulinkModeling Dynamic Systems in SimulinkModeling Dynamic Systems in SimulinkModeling Dynamic Systems in SimulinkModeli

Page 8

SimDriveline™ModelSimDriveline Model

Page 9

Simulink Online HelpSimulink Online HelpSimulink Getting Started GuideSimulink Getting Started Guide Simulink User’s Guide Simulink Reference Wri

Page 10

Getting started with SimulinkAn introductory tutorialAn introductory tutorialES205 Analysis and Design of Engineering SystemsES205 Analysis and Design

Page 11

Launch SimulinkIn the MATLAB command window,at the >> prompt, typesimulinkat the >> prompt, type simulinkand press  Enter

Page 12

MATLAB/Simulink ApplicationsMATLAB/Simulink ApplicationsMechanical SystemMechanical System AutomotiveControlsControls RoboticsAerospace and Def

Page 13

Create a new model Click the new-model icon in the upper left corner to start a new Simulink file Select the Simulink icon to obtain elements of the

Page 14

Your workspaceLibrary of elements Model is created in this window

Page 15 - Approaches

Save your model You might create a new folder, like the one shown below, called simulink_files Use the .mdl suffix when saving

Page 16

Example 1: a simple model Build a Simulink model that solves the differential equation qInitial conditiontx 2sin31)0(xInitial condition First,

Page 17

Simulation diagram Input is the forcing function 3sin(2t)Output is the solution of the differentialOutput is the solution of the differential equati

Page 18 - Getting started with Simulink

Select an input blockDrag a Sine Waveblock from the Sourceslibrary to the model window

Page 19 - Launch Simulink

Select an operator blockDrag an Integratorblock from the Continuouslibrary yto the model window

Page 20 - Create a new model

Select an output blockDrag a Scopeblock from the Sinkslibrary to the modelSinkslibrary to the model window

Page 21 - Your workspace

Connect blocks with signals Place your cursor on the output port (>) of pp ()the Sine Waveblock Drag from the Sine Waveoutput to the Integratorin

Page 22 - Save your model

Select simulation parametersDouble-click on theSine Wavethe Sine Waveblock to set amplitude = 3 and freq = 2.This p od ces theThis produces the desire

Page 23 - Example 1: a simple model

Model-Based DesignModelBased Design Faster, more cost-effective development of dynamic systems (e.g. control systems, vehicles, etc.)  A system mode

Page 24 - Simulation diagram

Select simulation parametersDouble-click on theIntegratorthe Integratorblock to set initial condition = -1.This sets our IC x(0) = -1.

Page 25 - Select an input block

Select simulation parametersDouble-click on theScopeto viewthe Scopeto view the simulation results

Page 26 - Select an operator block

Run the simulationIn the model window from thewindow, from the Simulationpull-down menu, ,select StartView the output x(t) in the Scopewindowwindow.

Page 27 - Select an output block

Simulation resultsTo verify that this plot represents the ppsolution to the problem, solve the equation analyticallyequation analytically. The analyti

Page 28 - Connect blocks with signals

Example 2 Build a Simulink model that solves the following differential equation (ODE)gq() 2nd-order mass-spring-damper systemzero ICszero ICs in

Page 29 - Select simulation parameters

Create the simulation diagram  On the following slides:The simulation diagram for solving theThe simulation diagram for solving the ODE is created

Page 30

(continue) First, solve for the term with highest-order derivativeMake the lefthand side of this equationkxxctfxm)(Make the left-hand side of

Page 31

Drag a Sumblock from the MathlibraryteatbayDouble-click to change the block parameters to rectangularand+rectangularand + --

Page 32 - Run the simulation

(continue) Add a gain (multiplier) block to eliminate the coefficient and produce pthe highest-derivative alonexmm1xsumming block

Page 33 - Simulation results

Drag a Gainblock from the MathlibraryteatbayThe gain is 4 since 1/m=4.Double-click to change the block parameters.Add a titleAdd a title.

Page 34 - Example 2

MATLAB Codes – Simulink Block & Block Parameters

Page 35 -  On the following slides:

(continue) Add integrators to obtain the desired output variablepxm11 1xxxmsumming blockssblock

Page 36 - (continue)

Drag Integratorblocks from theContinuouslibrarythe ContinuouslibraryInitial Conditions (ICs) on the integrators are zero.Add a scope from the Sinkslib

Page 37

(continue) Connect to the integrated signals with gain blocks to create the terms on the right-hand side of the EOMxm111xxxxmm1summings1s1xxxxc

Page 38

Drag new Gainblocks from the MathlibraryoteatbayTo flip the gain block, select it and chooseFlip Blockin theand choose Flip Blockin the Formatpull-dow

Page 39

Complete the model Bring all the signals and inputs to the summing block. Check signs on the summer.xmm1s1s1xxf(t)input+--xx(t)outputcxck-xou

Page 40

Double-click on Stepblock to set parameters For ato set parameters. For a step input of magnitude 3, set Final valueto 3

Page 41 - Continuous

Final Simulink model

Page 42

Run the simulation

Page 43 - Flip Block

ResultsUnderdamped response.Overshoot of 0.5.Final value of 3 (gain = 1).(g )Is this expected?System design – adjust m, c, kvalues to get different sy

Page 44 - Complete the model

Paperandpencil analysisPaper-and-pencil analysis based on the equations of motion Standard form)(1tfkxxkcmkx Nat’l freq.0.2mkn Damping rat

Page 45 - Final value

Modeling ProcessModeling ProcessOn Paper:On Paper:1 Defining the System2 Identifying System Components2 Identifying System Components3 Modeling the Sy

Page 46 - Final Simulink model

Check simulation results Damping ratio of 0.5 is less than 1. Expect the system to be underdamped.py p Expect to see overshoot.Static gain is 1.St

Page 47

The leading environment forThe leading environment fortechnical computing• The de facto industry-standard,fyhigh-level programming language for algori

Page 48

The leading environment for system-levelmodeling, simulation, and verification ofcommunications and electronic systems• Multidomain system-level desig

Page 49 -  Damping ratio

From Research to Development and TestFrom Research to Development and TestFrom Research to Development and TestFrom Research to Development and TestSY

Page 50 - Check simulation results

Graphical Layout of Functional ModulesGraphical Layout of Functional Modules

Commentaires sur ces manuels

Pas de commentaire