Professional Documents
Culture Documents
Simulink/1
Emanuele Ruffaldi
May 11, 2017
https://github.com/eruffaldi/course_simulink
Doheny Eye
Nissan 350Z
PERCRO BE
DLR Robotics
© 2016 Scuola Superiore Sant’Anna
Simulink Features
1. Visual Programming
– Defining a program by means of a graphical
representation of the problem
– Alternative to Textual Programming
2. Model-based Simulation
– Connections to the dynamics and physics of
the problems
3. From Simulation to Embedding
– Code Generation
– Live Connection to the Embedded Target
• Inside MATLAB
– doc simulink
• Online PDF (3000 pages)
• Online Web
Model Browser
Zoom Integrator
A B
Parameters
Input u(t) Block Output y(t)
OUTSIDE Input
Label
Discrete/Continuous
Type of sampling time
Sample
State
Time
INSIDE
Parameters Costant/Tunable
Source Output y(t) Plot, Store, Send to Network …, Goto
Block list
Library Tree
• Selection
• Multiple Selection with Shift
• Multiple Selection with Box Selection
• Clone
• Drag with CTRL
• Move Blocks
• Drag
• Rotate (CTRL+R)
• Connect Blocks
• Select first and select second using CTRL/CMD
• Branch line by holding CTRL from an existing line
• Disconnect block by drag a block holding SHIFT
Parameters
Autozoom
Properties Zoom
• Integrates a differential
equation
• Birth rate = b x
– b = 1/hour
• Death rate = p x2
– p=0.5
Display
Mux/DeMux Sinks
Signal Routing
Switch STOP
Signal Routing Sinks
From/GoTo
To Workspace
Signal Routing
Sinks
Selector
Signal Routing
Constant Integrator
Sources Continuous
Comparison
Ground Logical
Sources
Clock Product/Sum
Sources Math
SQRT
Math
© 2016 Scuola Superiore Sant’Anna