MATLAB SIMDRIVELINE RELEASE NOTES Uživatelský manuál Strana 1

Procházejte online nebo si stáhněte Uživatelský manuál pro ne MATLAB SIMDRIVELINE RELEASE NOTES. Getting Started with Simulink Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1 - Getting Started with Simulink

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

Strany 2 - Applications

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

Strany 3 - ) throughout the development

Simulink Library (blocks)Simulink Library (blocks)

Strany 6 - Eastman’s Presentation

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

Strany 7

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

Strany 8

SimDriveline™ModelSimDriveline Model

Strany 9

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

Strany 10

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

Strany 11

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

Strany 12

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

Strany 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

Strany 14

Your workspaceLibrary of elements Model is created in this window

Strany 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

Strany 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,

Strany 17

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

Strany 18 - Getting started with Simulink

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

Strany 19 - Launch Simulink

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

Strany 20 - Create a new model

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

Strany 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

Strany 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

Strany 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

Strany 24 - Simulation diagram

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

Strany 25 - Select an input block

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

Strany 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.

Strany 27 - Select an output block

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

Strany 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

Strany 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

Strany 30

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

Strany 31

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

Strany 32 - Run the simulation

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

Strany 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.

Strany 34 - Example 2

MATLAB Codes – Simulink Block & Block Parameters

Strany 35 -  On the following slides:

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

Strany 36 - (continue)

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

Strany 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

Strany 38

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

Strany 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

Strany 40

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

Strany 41 - Continuous

Final Simulink model

Strany 42

Run the simulation

Strany 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

Strany 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

Strany 45 - Final value

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

Strany 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

Strany 47

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

Strany 48

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

Strany 49 -  Damping ratio

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

Strany 50 - Check simulation results

Graphical Layout of Functional ModulesGraphical Layout of Functional Modules

Komentáře k této Příručce

Žádné komentáře