MATLAB SIMDRIVELINE RELEASE NOTES Manuale Utente

Navigare online o scaricare Manuale Utente per no MATLAB SIMDRIVELINE RELEASE NOTES. Getting Started with Simulink Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa

Sommario

Pagina 1 - Getting Started with Simulink

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

Pagina 2 - Applications

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

Pagina 3 - ) throughout the development

Simulink Library (blocks)Simulink Library (blocks)

Pagina 6 - Eastman’s Presentation

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

Pagina 7

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

Pagina 8

SimDriveline™ModelSimDriveline Model

Pagina 9

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

Pagina 10

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

Pagina 11

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

Pagina 12

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

Pagina 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

Pagina 14

Your workspaceLibrary of elements Model is created in this window

Pagina 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

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

Pagina 17

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

Pagina 18 - Getting started with Simulink

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

Pagina 19 - Launch Simulink

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

Pagina 20 - Create a new model

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

Pagina 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

Pagina 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

Pagina 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

Pagina 24 - Simulation diagram

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

Pagina 25 - Select an input block

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

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

Pagina 27 - Select an output block

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

Pagina 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

Pagina 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

Pagina 30

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

Pagina 31

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

Pagina 32 - Run the simulation

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

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

Pagina 34 - Example 2

MATLAB Codes – Simulink Block & Block Parameters

Pagina 35 -  On the following slides:

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

Pagina 36 - (continue)

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

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

Pagina 38

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

Pagina 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

Pagina 40

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

Pagina 41 - Continuous

Final Simulink model

Pagina 42

Run the simulation

Pagina 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

Pagina 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

Pagina 45 - Final value

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

Pagina 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

Pagina 47

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

Pagina 48

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

Pagina 49 -  Damping ratio

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

Pagina 50 - Check simulation results

Graphical Layout of Functional ModulesGraphical Layout of Functional Modules

Commenti su questo manuale

Nessun commento