Professional Documents
Culture Documents
Simulink — Blocks
Block Libraries
Continuous
First Order Hold Implement linearly extrapolated first order hold on input signal
Dashboard
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 1/22
22/4/2020 Simulink — Blocks
Horizontal Gauge Display signal value on horizontal, customizable gauge during simulation
Vertical Gauge Display signal value on vertical, customizable gauge during simulation
Discontinuities
Backlash Model behavior of system with play
Coulomb and Viscous Friction Model discontinuity at zero, with linear gain elsewhere
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 2/22
22/4/2020 Simulink — Blocks
Saturation Limit input signal to the upper and lower saturation values
Saturation Dynamic Limit input signal to dynamic upper and lower saturation values
Discrete
Discrete Zero-Pole Model system defined by zeros and poles of discrete transfer function
Resettable Delay Delay input signal by variable sample period and reset with external signal
Tapped Delay Delay scalar signal multiple sample periods and output all delayed versions
Transfer Fcn First Order Implement discrete-time first order transfer function
Transfer Fcn Real Zero Implement discrete-time transfer function that has real zero and no pole
Detect Fall Negative Detect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall Nonpositive Detect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive
Detect Rise Nonnegative Detect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise Positive Detect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive
Lookup Tables
1-D Lookup Table Approximate one-dimensional function
Direct Lookup Table (n-D) Index into n-dimensional table to retrieve element, vector, or 2-D matrix
Interpolation Using Prelookup Use precalculated index and fraction values to accelerate approximation of N-dimensional function
Prelookup Compute index and fraction for Interpolation Using Prelookup block
Sine, Cosine Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry
Complex to Real-Imag Output real and imaginary parts of complex input signal
Magnitude-Angle to Complex Convert magnitude and/or a phase angle signal to complex signal
Product Multiply and divide scalars and nonscalars or multiply and invert matrices
Product of Elements Copy or invert one scalar input, or collapse one nonscalar input
Sine Wave Function Generate sine wave, using external signal as time source
Sqrt Calculate square root, signed square root, or reciprocal of square root
Sequence Viewer Display messages, events, states, transitions, and functions between blocks during simulation
Model Verification
Check Dynamic Gap Check that gap of possibly varying width occurs in range of signal's amplitudes
Check Dynamic Range Check that signal falls inside range of amplitudes that varies from time step to time step
Check Static Gap Check that gap exists in signal's range of amplitudes
Check Static Range Check that signal falls inside fixed range of amplitudes
Check Discrete Gradient Check that absolute value of difference between successive samples of discrete signal is less than upper bound
Check Dynamic Lower Bound Check that one signal is always less than another signal
Check Dynamic Upper Bound Check that one signal is always greater than another signal
Check Input Resolution Check that input signal has specified resolution
Check Static Lower Bound Check that signal is greater than (or optionally equal to) static lower bound
Check Static Upper Bound Check that signal is less than (or optionally equal to) static upper bound
Model-Wide Utilities
Block Support Table View data type support for Simulink blocks
DocBlock Create text that documents model and save text with model
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 6/22
22/4/2020 Simulink — Blocks
For Each Subsystem Subsystem that repeats execution on each element or subarray of input signal and concatenates results
For Iterator Subsystem Subsystem that repeats execution during a simulation time step
Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks
Resettable Subsystem Subsystem whose block states reset with external trigger
Switch Case Select subsystem execution using logic similar to a switch statement
Switch Case Action Subsystem Subsystem whose execution is enabled by a Switch Case block
Variant Subsystem, Variant Model Template subsystem containing Subsystem blocks or Model blocks as Variant choices
While Iterator Subsystem Subsystem that repeats execution during a simulation time step
Signal Attributes
Data Type Conversion Inherited Convert from one data type to another using inherited data type and scaling
This website uses cookies to improve your user experience, personalize content and
Data Type Duplicate Force all inputs
ads, and analyze website to same
traffic. Bydata type
continuing to use this website, you consent to our
Data Type Propagation use of cookies. Set
Please seeand
data type ourscaling
Privacy Policy tosignal
of propagated learnbased
moreonabout cookies
information and howsignals
from reference to
Data Type Scaling Strip change your settings.
Remove scaling and map to built in integer
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 7/22
22/4/2020 Simulink — Blocks
Probe Output signal attributes, including width, dimensionality, sample time, and complex signal flag
Rate Transition Handle transfer of data between blocks operating at different rates
Signal Conversion Convert signal to new type without altering signal values
Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal
Signal Routing
Environment Controller Create branches of block diagram that apply only to simulation or only to code generation
Index Vector Switch output between different inputs based on value of first input
Selector
use of cookies. Select
Please see our Privacy Policy to learn more about cookies and how to
input elements from vector, matrix, or multidimensional signal
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 8/22
22/4/2020 Simulink — Blocks
Vector Concatenate, Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal
Sinks
Floating Scope and Scope Viewer Display signals generated during simulation without signal lines
Sources
Counter Free-Running Count up and overflow back to zero after reaching maximum value for specified number of bits
Counter Limited Count up and wrap back to zero after outputting specified upper limit
Repeating Sequence Interpolated Output discrete-time sequence and repeat, interpolating between data points
Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear
Sine Wave Generate sine wave, using simulation time as time source
String
Compose String Compose output string signal based on specified format and input signals
Scan String Scan input string and convert to signals per specified format
String Contains Determine if string contains, starts with, or ends with pattern
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 10/22
22/4/2020 Simulink — Blocks
User-Defined Functions
MATLAB Function Include MATLAB code in models that generate embeddable C code
Transfer Fcn Direct Form II Implement Direct Form II realization of transfer function
Transfer Fcn Direct Form II Time Varying Implement time varying Direct Form II realization of transfer function
Modeling
Design Model Architecture
Component-Based Modeling
Variant Subsystem, Variant Model Template subsystem containing Subsystem blocks or Model blocks as Variant choices
Subsystems
Subsystem Group blocks to create model hierarchy
Custom Libraries
Model References
Model Reference another model to create model hierarchy
Variant Subsystem, Variant Model Template subsystem containing Subsystem blocks or Model blocks as Variant choices
Variant Systems
Variant Subsystem, Variant Model Template subsystem containing Subsystem blocks or Model blocks as Variant choices
Data Stores
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 12/22
22/4/2020 Simulink — Blocks
Composite Signals
Mux Combine input signals of same data type and complexity into virtual vector
Vector Concatenate, Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal
Signal Conversion Convert signal to new type without altering signal values
Enabled and Triggered Subsystem Subsystem whose execution is enabled and triggered by external inputs
Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks
If
This website uses cookies to improve your user experience, personalize content and
Select subsystem execution using logic similar to if-else statement
ads, and analyze website traffic. By continuing to use this website, you consent to our
If Action Subsystem Subsystem whose execution is enabled by an If block
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Switch Case Select subsystem execution using logic similar to a switch statement
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 13/22
22/4/2020 Simulink — Blocks
Switch Case Action Subsystem Subsystem whose execution is enabled by a Switch Case block
While Iterator Subsystem Subsystem that repeats execution during a simulation time step
For Iterator Repeat execution of a subsystem during a time step for a specified number of iterations
For Iterator Subsystem Subsystem that repeats execution during a simulation time step
For Each Process elements or subarrays of a mask parameter or input signal independently
For Each Subsystem Subsystem that repeats execution on each element or subarray of input signal and concatenates results
Simulink Functions
Simulink Function Function defined with Simulink blocks
MATLAB Function Include MATLAB code in models that generate embeddable C code
Event Functions
Initialize Function Executes contents on a model initialize event
Resettable Subsystem Subsystem whose block states reset with external trigger
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 14/22
22/4/2020 Simulink — Blocks
Sequence Viewer Display messages, events, states, transitions, and functions between blocks during simulation
Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks
Nonlinearity
Direct Lookup Table (n-D) Index into n-dimensional table to retrieve element, vector, or 2-D matrix
Interpolation Using Prelookup Use precalculated index and fraction values to accelerate approximation of N-dimensional function
Prelookup Compute index and fraction for Interpolation Using Prelookup block
Sine, Cosine Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry
Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal
Signal Conversion Convert signal to new type without altering signal values
Units in Simulink
Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal
Data Types
Block Support Table View data type support for Simulink blocks
Data Type Conversion Inherited Convert from one data type to another using inherited data type and scaling
Data Type Propagation Set data type and scaling of propagated signal based on information from reference signals
Data Type Scaling Strip Remove scaling and map to built in integer
Compose String Compose output string signal based on specified format and input signals
Scan String Scan input string and convert to signals per specified format
String Contains Determine if string contains, starts with, or ends with pattern
Check Dynamic Gap Check that gap of possibly varying width occurs in range of signal's amplitudes
Check Dynamic Lower Bound Check that one signal is always less than another signal
Check Dynamic Range Check that signal falls inside range of amplitudes that varies from time step to time step
Check Dynamic Upper Bound Check that one signal is always greater than another signal
Check Input Resolution Check that input signal has specified resolution
Check Static Gap Check that gap exists in signal's range of amplitudes
Check Static Lower Bound Check that signal is greater than (or optionally equal to) static lower bound
Check Static Range Check that signal falls inside fixed range of amplitudes
Check Static Upper Bound Check that signal is less than (or optionally equal to) static upper bound
Simulation
Prepare Model Inputs and Outputs
Load Signal Data for Simulation
Inport Create input port for subsystem or external input
This
In Bus Element, Bus Element In website uses cookies
Select to improve
signal that connects toyour
inputuser
port experience, personalize content and
ads, and analyze website traffic. By continuing to use this website, you consent to our
Enable Add enable port to subsystem or model
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Trigger Add trigger or function port to subsystem or model
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 17/22
22/4/2020 Simulink — Blocks
Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear
Run Simulations
Load Signal Data for Simulation
Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear
Scope Viewer and Floating Scope Display signals generated during simulation without signal lines
Horizontal Gauge Display signal value on horizontal, customizable gauge during simulation
Vertical Gauge Display signal value on vertical, customizable gauge during simulation
MATLAB Function
This website uses cookies to improve your user experience, personalize content and
Include MATLAB code in models that generate embeddable C code
ads, and analyze website traffic. By continuing to use this website, you consent to our
MATLAB System Include System object in model
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
S-Function Include S-function in model
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 19/22
22/4/2020 Simulink — Blocks
MATLAB Function Include MATLAB code in models that generate embeddable C code
Variable-Size Data
MATLAB Function Include MATLAB code in models that generate embeddable C code
Structures
MATLAB Function Include MATLAB code in models that generate embeddable C code
Tables
MATLAB Function Include MATLAB code in models that generate embeddable C code
Categorical Arrays
MATLAB Function Include MATLAB code in models that generate embeddable C code
Datetime Arrays
This website uses cookies to improve your user experience, personalize content and
ads, and analyze website traffic. By continuing to use this website, you consent to our
MATLAB Function Include MATLAB code in models that generate embeddable C code
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Duration Arrays change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 20/22
22/4/2020 Simulink — Blocks
MATLAB Function Include MATLAB code in models that generate embeddable C code
Timetables
MATLAB Function Include MATLAB code in models that generate embeddable C code
Enumerations
MATLAB Function Include MATLAB code in models that generate embeddable C code
MATLAB Classes
MATLAB Function Include MATLAB code in models that generate embeddable C code
Function Handles
MATLAB Function Include MATLAB code in models that generate embeddable C code
Function Definition
MATLAB Function Include MATLAB code in models that generate embeddable C code
Performance
MATLAB Function Include MATLAB code in models that generate embeddable C code
Implement Algorithms Using C/C++ Code
This website uses cookies to improve your user experience, personalize content and
Call C Code Using C Caller Blockads, and analyze website traffic. By continuing to use this website, you consent to our
C Caller use of cookies. Integrate
Please C see our
code Privacy Policy to learn more about cookies and how to
in Simulink
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 21/22
22/4/2020 Simulink — Blocks
Co-Simulation
This website uses cookies to improve your user experience, personalize content and
ads, and analyze website traffic. By continuing to use this website, you consent to our
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
change your settings.
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 22/22