You are on page 1of 22

22/4/2020 Simulink — Blocks

Simulink — Blocks

By Category Alphabetical List

Simulink Environment Fundamentals

Block Libraries
Continuous

Derivative Output time derivative of input

Descriptor State-Space Model linear implicit systems

Entity Transport Delay Introduce a delay in propagation of a SimEvents message

First Order Hold Implement linearly extrapolated first order hold on input signal

Integrator Integrate signal

Integrator Limited Integrate signal

PID Controller Continuous-time or discrete-time PID controller

PID Controller (2DOF) Continuous-time or discrete-time two-degree-of-freedom PID controller

Second-Order Integrator Integrate input signal twice

Second-Order Integrator Limited Integrate input signal twice

State-Space Implement linear state-space system

Transfer Fcn Model linear system by transfer function

Transport Delay Delay input by given amount of time

Variable Time Delay Delay input by variable amount of time

Variable Transport Delay Delay input by variable amount of time

Zero-Pole Model system by zero-pole-gain transfer function

Dashboard

Callback Button  This website uses cookies


Execute to improve
MATLAB code based your userinput
on user experience, personalize content and
ads, and analyze website traffic. By continuing to use this website, you consent to our
Check Box Select parameter or variable value 
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Combo Box Select parameter value from drop-down menu
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 1/22
22/4/2020 Simulink — Blocks

Custom Gauge Display signal value on a customized gauge

Dashboard Scope Trace signals during simulation

Display Display signal value during simulation

Edit Enter new value for parameter

Gauge Display signal value on circular scale

Half Gauge Display input value on semicircular scale

Horizontal Gauge Display signal value on horizontal, customizable gauge during simulation

Knob Tune parameter value with dial

Lamp Display color reflecting input value

Linear Gauge Display input value on linear scale

MultiStateImage Display image reflecting input value

Push Button Set value of parameter when button is pressed

Quarter Gauge Display input value on quadrant scale

Radio Button Select parameter value

Rocker Switch Toggle parameter between two values

Rotary Switch Switch parameter to set values on dial

Slider Tune parameter value with sliding scale

Slider Switch Toggle parameter between two values

Toggle Switch Toggle parameter between two values

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

Dead Zone Provide region of zero output

Dead Zone Dynamic Provide dynamic region of zero output

Hit Crossing Detect crossing point

Quantizer  This website uses cookies


Discretize toatimprove
input your user experience, personalize content and
given interval

Rate Limiter ads, and analyze website


Limit traffic.ofBy
rate of change continuing to use this website, you consent to our
signal 
Rate Limiter Dynamic
use of cookies. Limit
Please see our Privacy
rate of change of signal
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 2/22
22/4/2020 Simulink — Blocks

Relay Switch output between two constants

Saturation Limit input signal to the upper and lower saturation values

Saturation Dynamic Limit input signal to dynamic upper and lower saturation values

Wrap To Zero Set output to zero if input is above threshold

Discrete

Delay Delay input signal by fixed or variable sample periods

Difference Calculate change in signal over one time step

Discrete Derivative Compute discrete-time derivative

Discrete FIR Filter Model FIR filters

Discrete Filter Model Infinite Impulse Response (IIR) filters

Discrete PID Controller Discrete-time or continuous-time PID controller

Discrete PID Controller (2DOF) Discrete-time or continuous-time two-degree-of-freedom PID controller

Discrete State-Space Implement discrete state-space system

Discrete Transfer Fcn Implement discrete transfer function

Discrete Zero-Pole Model system defined by zeros and poles of discrete transfer function

Discrete-Time Integrator Perform discrete-time integration or accumulation of signal

First-Order Hold (Obsolete) Implement first-order sample-and-hold

Memory Output input from previous time step

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 Lead or Lag Implement discrete-time lead or lag compensator

Transfer Fcn Real Zero Implement discrete-time transfer function that has real zero and no pole

Unit Delay Delay signal one sample period

Variable Integer Delay Delay input signal by variable sample period

Zero-Order Hold Implement zero-order hold sample period


 This website uses cookies to improve your user experience, personalize content and
Logic and Bit Operations ads, and analyze website traffic. By continuing to use this website, you consent to our

Bit Clear use of cookies. Set
Please see our Privacy Policy to
specified bit of stored integer to zero learn more about cookies and how to
change your settings.
Bit Set Set specified bit of stored integer to one
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 3/22
22/4/2020 Simulink — Blocks

Bitwise Operator Specified bitwise operation on inputs

Combinatorial Logic Implement truth table

Compare To Constant Determine how signal compares to specified constant

Compare To Zero Determine how signal compares to zero

Detect Change Detect change in signal value

Detect Decrease Detect decrease in signal value

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 Increase Detect increase in signal value

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

Extract Bits Output selection of contiguous bits from input signal

Interval Test Determine if signal is in specified interval

Interval Test Dynamic Determine if signal is in specified interval

Logical Operator Perform specified logical operation on input

Relational Operator Perform specified relational operation on inputs

Shift Arithmetic Shift bits or binary point of signal

Lookup Tables
1-D Lookup Table Approximate one-dimensional function

2-D Lookup Table Approximate two-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

Lookup Table Dynamic Approximate a one-dimensional function using dynamic table

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

n-D Lookup Table Approximate n-dimensional function


 This website uses cookies to improve your user experience, personalize content and
Math Operations ads, and analyze website traffic. By continuing to use this website, you consent to our

Abs use of cookies. Output
Please see our Privacy
absolute value of inputPolicy to learn more about cookies and how to
change your settings.
Add Add or subtract inputs
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 4/22
22/4/2020 Simulink — Blocks

Algebraic Constraint Constrain input signal

Assignment Assign values to specified elements of signal

Bias Add bias to input

Complex to Magnitude-Angle Compute magnitude and/or phase angle of complex signal

Complex to Real-Imag Output real and imaginary parts of complex input signal

Divide Divide one input by another

Dot Product Generate dot product of two vectors

Find Nonzero Elements Find nonzero elements in array

Gain Multiply input by constant

Magnitude-Angle to Complex Convert magnitude and/or a phase angle signal to complex signal

Math Function Perform mathematical function

MinMax Output minimum or maximum input value

MinMax Running Resettable Determine minimum or maximum of signal over time

Permute Dimensions Rearrange dimensions of multidimensional array dimensions

Polynomial Perform evaluation of polynomial coefficients on input values

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

Real-Imag to Complex Convert real and/or imaginary inputs to complex signal

Reshape Change dimensionality of signal

Rounding Function Apply rounding function to signal

Sign Indicate sign of input

Sine Wave Function Generate sine wave, using external signal as time source

Slider Gain Vary scalar gain using slider

Sqrt Calculate square root, signed square root, or reciprocal of square root

Squeeze Remove singleton dimensions from multidimensional signal

Trigonometric Function Specified trigonometric function on input

Unary Minus Negate input


 This website
Vector Concatenate, Matrix Concatenate uses cookiesinput
Concatenate to improve
signals ofyour
sameuser experience,
data type personalize
to create contiguous outputcontent
signal and
ads, and analyze website traffic. By continuing to use this website, you consent to our
Weighted Sample Time Math Support calculations involving sample time 
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
change your settings.
Messages & Events
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 5/22
22/4/2020 Simulink — Blocks

Hit Crossing Detect crossing point

Queue Enqueue messages and entities

Receive Extract data from received messages

Send Create and send message

Sequence Viewer Display messages, events, states, transitions, and functions between blocks during simulation

Model Verification

Assertion Check whether signal is zero

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

Model Info Display model properties and text in model

Timed-Based Linearization Generate linear models in base workspace at specific times

Trigger-Based Linearization Generate linear models in base workspace when triggered

Ports and Subsystems


Configurable Subsystem  Represent
This website uses cookiesanyto
block selected
improve fromuser
your user-specified librarypersonalize
experience, of blocks content and
Enable ads, and analyze website
Add traffic.
enable port By continuing
to subsystem or model to use this website, you consent to our

Enabled Subsystem use of cookies. Subsystem
Please see ourexecution
whose PrivacyisPolicy tobylearn
enabled more
external inputabout cookies and how to
change your settings.
Enabled and Triggered Subsystem Subsystem whose execution is enabled and triggered by external inputs

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

Function-Call Generator Provide function-call events to control execution of a subsystem or model

Function-Call Split Provide junction for splitting function-call line

Function-Call Subsystem Subsystem whose execution is controlled by an external function-call input

If Select subsystem execution using logic similar to if-else statement

If Action Subsystem Subsystem whose execution is enabled by an If block

In Bus Element Select signal that connects to input port

Inport Create input port for subsystem or external input

Model Reference another model to create model hierarchy

Out Bus Element Specify signal that connects to output port

Outport Create output port for subsystem or external output

Resettable Subsystem Subsystem whose block states reset with external trigger

Subsystem, Atomic Subsystem, CodeReuse Group blocks to create model hierarchy


Subsystem

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

Trigger Add trigger or function port to subsystem or model

Triggered Subsystem Subsystem whose execution is triggered by external input

Unit System Configuration Restrict units to specified allowed unit systems

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

Bus to Vector Convert virtual bus to vector

Data Type Conversion Convert input signal to specified data type


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

IC Set initial value of signal

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

Unit Conversion Convert units

Weighted Sample Time Support calculations involving sample time

Width Output width of input vector

Signal Routing

Bus Assignment Replace specified bus elements

Bus Creator Create bus from input signals

Bus Selector Select signals from incoming bus

Data Store Memory Define data store

Data Store Read Read data from data store

Data Store Write Write data to data store

Demux Extract and output elements of virtual vector signal

Environment Controller Create branches of block diagram that apply only to simulation or only to code generation

From Accept input from Goto block

Goto Pass block input to From blocks

Goto Tag Visibility Define scope of Goto block tag

Index Vector Switch output between different inputs based on value of first input

Manual Switch Switch between two inputs

Manual Variant Sink Switch between multiple variant choices at output

Manual Variant Source Switch between multiple variant choices at input

Merge Combine multiple signals into single signal

Multiport Switch Select output signal based on control signal

Mux  This website uses cookies


Combine inputto improve
signals your
of same user
data typeexperience,
and complexitypersonalize content and
into virtual vector

Parameter Writer ads, and analyze website


Write traffic.
to a model By continuing
instance parameter to use this website, you consent to our 

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

State Reader Read a block state

State Writer Write to a block state

Switch Combine multiple signals into single signal

Variant Sink Route amongst multiple outputs using Variants

Variant Source Route among multiple inputs using Variants

Vector Concatenate, Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal

Sinks

Display Show value of input

Floating Scope and Scope Viewer Display signals generated during simulation without signal lines

Out Bus Element Specify signal that connects to output port

Outport Create output port for subsystem or external output

Scope Display signals generated during simulation

Stop Simulation Stop simulation when input is nonzero

Terminator Terminate unconnected output port

To File Write data to file

To Workspace Write data to workspace

XY Graph Display X-Y plot of signals using MATLAB figure window

Sources

Band-Limited White Noise Introduce white noise into continuous system

Chirp Signal Generate sine wave with increasing frequency

Clock Display and provide simulation time

Constant Generate constant value

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

Digital Clock Output simulation time at specified sampling interval

Enumerated Constant  This website uses cookies


Generate to improve
enumerated your
constant user experience, personalize content and
value

From File ads, and analyze website


Load traffic.
data from By continuing to use this website, you consent to our
MAT-file

From Spreadsheet use of cookies. Read
Please see our Privacy
data from spreadsheet Policy to learn more about cookies and how to
change your settings.
From Workspace Load signal data from workspace
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 9/22
22/4/2020 Simulink — Blocks

Ground Ground unconnected input port

In Bus Element Select signal that connects to input port

Inport Create input port for subsystem or external input

Pulse Generator Generate square wave pulses at regular intervals

Ramp Generate constantly increasing or decreasing signal

Random Number Generate normally distributed random numbers

Repeating Sequence Generate arbitrarily shaped periodic signal

Repeating Sequence Interpolated Output discrete-time sequence and repeat, interpolating between data points

Repeating Sequence Stair Output and repeat discrete time sequence

Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear

Signal Editor Display, create, edit, and switch interchangeable scenarios

Signal Generator Generate various waveforms

Sine Wave Generate sine wave, using simulation time as time source

Step Generate step function

Uniform Random Number Generate uniformly distributed random numbers

Waveform Generator Output waveforms using signal notations

String

ASCII to String Uint8 vector signal to string signal

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 Compare Compare two input strings

String Concatenate Concatenate input strings to form one output string

String Constant Output specified string

String Contains Determine if string contains, starts with, or ends with pattern

String Count Count occurrences of pattern in string

String Find Return index of first occurrence of pattern string

String Length  This website uses cookies


Output numbertoofimprove
charactersyour user
in input experience, personalize content and
string

String to ASCII ads, and analyze website


Convert stringtraffic. Byuint8
signal to continuing
vector to use this website, you consent to our

String to Double
use of cookies. Convert
Pleasestring
see signal
our Privacy Policy
to double signal
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 10/22
22/4/2020 Simulink — Blocks

String to Enum Input string signal to enumerated signal

String to Single Convert string signal to single signal

Substring Extract substring from input string signal

To String Convert input signal to string signal

User-Defined Functions

C Caller Integrate C code in Simulink

C Function Integrate and call external C code from a Simulink model

Fcn (Not recommended) Apply specified expression to input

Function Caller Call Simulink or exported Stateflow function

Initialize Function Executes contents on a model initialize event

Interpreted MATLAB Function Apply MATLAB function or expression to input

Level-2 MATLAB S-Function Use Level-2 MATLAB S-function in model

MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Reset Function Executes contents on a model reset event

S-Function Include S-function in model

S-Function Builder Integrate C or C++ code to create S-functions

Simulink Function Function defined with Simulink blocks

Terminate Function Execute contents on a model terminate event

Additional Math and Discrete

Fixed-Point State-Space Implement discrete-time state space

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

Decrement Real World Decrease real-world value of signal by one

Decrement Stored Integer Decrease stored integer value of signal by one

Decrement Time To Zero  This website uses cookies


Decrease to improve
real-world value ofyour
signaluser experience,
by sample personalize
time, but only to zero content and
Decrement To Zero ads, and analyze website
Decrease traffic.value
real-world By continuing to use
of signal by one, this towebsite,
but only zero you consent to our

Increment Real World use of cookies. Increase
Please real-world
see our value
Privacy Policy to
of signal by onelearn more about cookies and how to
change your settings.
Increment Stored Integer Increase stored integer value of signal by one
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 11/22
22/4/2020 Simulink — Blocks

Modeling
Design Model Architecture
Component-Based Modeling

Subsystem Group blocks to create model hierarchy

Model Reference another model to create model hierarchy

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

Subsystem Group blocks to create model hierarchy

Unresolved Link Indicate unresolved reference to library block

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

Variant Source Route among multiple inputs using Variants

Variant Sink Route amongst multiple outputs using Variants

Manual Variant Source Switch between multiple variant choices at input

Manual Variant Sink Switch between multiple variant choices at output

Data Stores

Data Store Memory  This website uses cookies


Define to improve your user experience, personalize content and
data store
ads, and analyze website traffic. By continuing to use this website, you consent to our
Data Store Read Read data from data store 
use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Data Store Write Write data to data store
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 12/22
22/4/2020 Simulink — Blocks

Composite Signals

Bus Assignment Replace specified bus elements

Bus Creator Create bus from input signals

Bus Selector Select signals from incoming bus

In Bus Element Select signal that connects to input port

Out Bus Element Specify signal that connects to output port

Demux Extract and output elements of virtual vector signal

Mux Combine input signals of same data type and complexity into virtual vector

Selector Select input elements from vector, matrix, or multidimensional signal

Vector Concatenate, Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal

Bus to Vector Convert virtual bus to vector

Signal Conversion Convert signal to new type without altering signal values

Design Model Behavior


Conditionally Executed Subsystems and Models

Enabled Subsystem Subsystem whose execution is enabled by external input

Triggered Subsystem Subsystem whose execution is triggered by external input

Enabled and Triggered Subsystem Subsystem whose execution is enabled and triggered by external inputs

Enable Add enable port to subsystem or model

Trigger Add trigger or function port to subsystem or model

Function-Call Subsystem Subsystem whose execution is controlled by an external function-call input

Function-Call Generator Provide function-call events to control execution of a subsystem or model

Function-Call Split Provide junction for splitting function-call line

Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks

Trigger Add trigger or function port to subsystem or model

Logical Conditionally Executed Subsystems

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

Action Port Add control port for action signal to subsystem

While Iterator Repeat execution of a subsystem while a logical expression is true

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

Argument Inport Argument input port for Simulink Function block

Argument Outport Argument output port for Simulink Function block

Function Caller Call Simulink or exported Stateflow function

MATLAB Function Include MATLAB code in models that generate embeddable C code

Inport Create input port for subsystem or external input

Outport Create output port for subsystem or external output

Event Functions
Initialize Function Executes contents on a model initialize event

Reset Function Executes contents on a model reset event

Terminate Function Execute contents on a model terminate event

Event Listener Add event port to a subsystem block

State Reader Read a block state

State Writer Write to a block state

Parameter Writer Write to a model instance parameter

Resettable Subsystem Subsystem whose block states reset with external trigger

Reset  This website uses


Addcookies
reset portto improve your user experience, personalize content and
to subsystem
ads, and analyze website traffic. By continuing to use this website, you consent to our

Messages use of cookies. Please see our Privacy Policy to learn more about cookies and how to
Send
change your settings.
Create and send message

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

Receive Extract data from received messages

Hit Crossing Probe Detect crossing point

Queue, Entity Queue Enqueue messages and entities

Sequence Viewer Display messages, events, states, transitions, and functions between blocks during simulation

Schedule Model Components

Function-Call Subsystem Subsystem whose execution is controlled by an external function-call input

Function-Call Generator Provide function-call events to control execution of a subsystem or model

Function-Call Split Provide junction for splitting function-call line

Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks

Trigger Add trigger or function port to subsystem or model

Subsystem Group blocks to create model hierarchy

Inport Create input port for subsystem or external input

Nonlinearity

1-D Lookup Table Approximate one-dimensional function

2-D Lookup Table Approximate two-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

Lookup Table Dynamic Approximate a one-dimensional function using dynamic table

n-D Lookup Table Approximate 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

Configure Signals, States, and Parameters


Signals

Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal

Bus to Vector  This website uses cookies


Convert virtualto
busimprove
to vector your user experience, personalize content and

IC ads, and analyzeSetwebsite traffic.


initial value By continuing to use this website, you consent to our
of signal

Probe use of cookies. Output
Please see our Privacy Policy to learn more about cookies and how to
signal attributes, including width, dimensionality, sample time, and complex signal flag
change your settings.
Rate Transition Handle transfer of data between blocks operating at different rates
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 15/22
22/4/2020 Simulink — Blocks

Signal Editor Display, create, edit, and switch interchangeable scenarios

Signal Conversion Convert signal to new type without altering signal values

Weighted Sample Time Support calculations involving sample time

Width Output width of input vector

Units in Simulink

Inport Create input port for subsystem or external input

Outport Create output port for subsystem or external output

Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal

Unit System Configuration Restrict units to specified allowed unit systems

Unit Conversion Convert units

Data Types

Block Support Table View data type support for Simulink blocks

Data Type Conversion Convert input signal to specified data type

Data Type Conversion Inherited Convert from one data type to another using inherited data type and scaling

Data Type Duplicate Force all inputs to same data type

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

ASCII to String Uint8 vector signal to string signal

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 Compare Compare two input strings

String Concatenate Concatenate input strings to form one output string

String Constant Output specified string

String Contains Determine if string contains, starts with, or ends with pattern

String Count Count occurrences of pattern in string

String Find  This website uses cookies


Return index oftofirst
improve your
occurrence user experience,
of pattern string personalize content and
String Length ads, and analyze website
Output numbertraffic. By continuing
of characters to use this website, you consent to our
in input string

String to ASCII use of cookies. Convert
Pleasestring
see signal
our Privacy Policy to learn more about cookies and how to
to uint8 vector
change your settings.
String to Double Convert string signal to double signal
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 16/22
22/4/2020 Simulink — Blocks

String to Enum Input string signal to enumerated signal

String to Single Convert string signal to single signal

Substring Extract substring from input string signal

To String Convert input signal to string signal

Analyze and Remodel Design


Transform Models
Trimming and Linearization
Timed-Based Linearization Generate linear models in base workspace at specific times

Trigger-Based Linearization Generate linear models in base workspace when triggered

Test Model Components


Assertion Check whether signal is zero

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

From File Load data from MAT-file

From Spreadsheet Read data from spreadsheet

From Workspace Load signal data from workspace

Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear

Signal Editor Display, create, edit, and switch interchangeable scenarios

Save Run-Time Data from Simulation

Outport Create output port for subsystem or external output

To File Write data to file

To Workspace Write data to workspace

Run Simulations
Load Signal Data for Simulation

Inport Create input port for subsystem or external input

Enable Add enable port to subsystem or model

Trigger Add trigger or function port to subsystem or model

From File Load data from MAT-file

From Spreadsheet Read data from spreadsheet

From Workspace Load signal data from workspace

Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear

Signal Editor Display, create, edit, and switch interchangeable scenarios

View and Analyze Simulation Results


View Simulation Results
Scope Display signals generated during simulation

Scope Viewer and Floating Scope Display signals generated during simulation without signal lines

XY Graph Display X-Y plot of signals using MATLAB figure window



This website uses cookies to improve your user experience, personalize content and
ads, and
Control Simulations with Interactive analyze website traffic. By continuing to use this website, you consent to our
Displays

Dashboard Scope use of cookies. Trace
Please seeduring
signals our Privacy
simulationPolicy to learn more about cookies and how to
change your settings.
Display Display signal value during simulation
https://es.mathworks.com/help/simulink/referencelist.html?type=block&listtype=cat&category=index&blocktype=all&capability=&s_tid=CRUX_gn_blk 18/22
22/4/2020 Simulink — Blocks

Custom Gauge Display signal value on a customized gauge

Gauge Display signal value on circular scale

Half Gauge Display input value on semicircular scale

Quarter Gauge Display input value on quadrant scale

Horizontal Gauge Display signal value on horizontal, customizable gauge during simulation

Vertical Gauge Display signal value on vertical, customizable gauge during simulation

Linear Gauge Display input value on linear scale

Lamp Display color reflecting input value

MultiStateImage Display image reflecting input value

Edit Enter new value for parameter

Knob Tune parameter value with dial

Slider Tune parameter value with sliding scale

Push Button Set value of parameter when button is pressed

Rotary Switch Switch parameter to set values on dial

Radio Button Select parameter value

Combo Box Select parameter value from drop-down menu

Check Box Select parameter or variable value

Rocker Switch Toggle parameter between two values

Slider Switch Toggle parameter between two values

Toggle Switch Toggle parameter between two values

Callback Button Execute MATLAB code based on user input

Block Authoring and Simulation Integration


Block Creation Basics
Function Caller Call Simulink or exported Stateflow function

Interpreted MATLAB Function Apply MATLAB function or expression to input

Level-2 MATLAB S-Function Use Level-2 MATLAB S-function in model

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

S-Function Builder Integrate C or C++ code to create S-functions

Simulink Function Function defined with Simulink blocks

Extend Modeling Functionality with Custom Blocks


Implement Algorithms Using MATLAB
Integrate Basic Algorithms Using MATLAB Function Block
MATLAB Function Block Basics

MATLAB Function Include MATLAB code in models that generate embeddable C code

Programming for Code Generation


Language, Function, and Object Support
MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Data DefinitionData Definition Basics


MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Variable-Size Data
MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Structures
MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

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

MATLAB System Include System object in model

Function Handles
MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Function Definition
MATLAB Function Include MATLAB code in models that generate embeddable C code

MATLAB System Include System object in model

Performance

MATLAB Function Include MATLAB code in models that generate embeddable C code

Create and Configure MATLAB S-Functions


Create MATLAB S-Functions

S-Function Include S-function in model

Integrate System Objects Using MATLAB System Block


Implement Blocks with System Objects

MATLAB System Include System object in model


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

Integrate External C Algorithms Using C Function Blocks


C Function Integrate and call external C code from a Simulink model

Implement C/C++ S-Functions


Create C/C++ S-Functions

S-Function Include S-function in model

S-Function Builder Integrate C or C++ code to create S-functions

Debug and Analyze the Quality of S-Functions

S-Function Include S-function in model

S-Function Builder Integrate C or C++ code to create S-functions

Implement C/C++ Code Using S-Function Builder


S-Function Builder Integrate C or C++ code to create S-functions

Implement Algorithms Using Fortran Code

S-Function Include S-function in model

S-Function Builder Integrate C or C++ code to create S-functions

Integrate with Existing Simulation or Environment


FMU Importing
FMU Include Functional Mockup Unit (FMU) in model

Co-Simulation

FMU Include Functional Mockup Unit (FMU) in model

S-Function Include S-function in model

 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

You might also like