Using Simulink    

Simulink Block Libraries

Simulink organizes its blocks into block libraries according to their behavior.

The following tables list contents of all libraries except the Blocksets and Toolboxes and Demos libraries.

Table 9-1: Sources Library Blocks 
Block Name
Purpose
Band-Limited White Noise
Introduce white noise into a continuous system.
Chirp Signal
Generate a sine wave with increasing frequency.
Clock
Display and provide the simulation time.
Constant
Generate a constant value.
Digital Clock
Generate simulation time at the specified sampling interval.
Digital Pulse Generator
Generate pulses at regular intervals.
From File
Read data from a file.
From Workspace
Read data from a variable defined in the workspace.
Pulse Generator
Generate pulses at regular intervals.
Ramp
Generate a constantly increasing or decreasing signal.
Random Number
Generate normally distributed random numbers.
Repeating Sequence
Generate a repeatable arbitrary signal.
Signal Generator
Generate various waveforms.
Sine Wave
Generate a sine wave.
Step
Generate a step function.
Uniform Random Number
Generate uniformly distributed random numbers.

Table 9-2: Sinks Library Blocks 
Block Name
Purpose
Display
Show the value of the input.
Scope
Display signals generated during a simulation.
Stop Simulation
Stop the simulation when the input is nonzero.
To File
Write data to a file.
To Workspace
Write data to a variable in the workspace.
XY Graph
Display an X-Y plot of signals using a MATLAB figure window.

Table 9-3: Discrete Library Blocks 
Block Name
Purpose
Discrete Filter
Implement IIR and FIR filters.
Discrete State-Space
Implement a discrete state-space system.
Discrete-Time Integrator
Perform discrete-time integration of a signal.
Discrete Transfer Fcn
Implement a discrete transfer function.
Discrete Zero-Pole
Implement a discrete transfer function specified in terms of poles and zeros.
First-Order Hold
Implement a first-order sample-and-hold.
Unit Delay
Delay a signal one sample period.
Zero-Order Hold
Implement zero-order hold of one sample period.

Table 9-4: Continuous Library Blocks 
Block Name
Purpose
Derivative
Output the time derivative of the input.
Integrator
Integrate a signal.
Memory
Output the block input from the previous time step.
State-Space
Implement a linear state-space system.
Transfer Fcn
Implement a linear transfer function.
Transport Delay
Delay the input by a given amount of time.
Variable Transport Delay
Delay the input by a variable amount of time.
Zero-Pole
Implement a transfer function specified in terms of poles and zeros.

Table 9-5: Math Library Blocks 
Block Name
Purpose
Abs
Output the absolute value of the input.
Algebraic Constraint
Constrain the input signal to zero.
Bitwise Logical Operator
Logically mask, invert, or shift the bits of an unsigned integer signal.
Combinatorial Logic
Implement a truth table.
Complex to Magnitude-Angle
Output the phase and magnitude of a complex input signal.
Complex to Real-Imag
Output the real and imaginary parts of a complex input signal.
Derivative
Output the time derivative of the input.
Dot Product
Generate the dot product.
Gain
Multiply block input.
Logical Operator
Perform the specified logical operation on the input.
Magnitude-Angle to Complex
Output a complex signal from magnitude and phase inputs.
Math Function
Perform a mathematical function.
Matrix Gain
Multiply the input by a matrix.
MinMax
Output the minimum or maximum input value.
Product
Generate the product or quotient of block inputs.
Real-Imag to Complex
Output a complex signal from real and imaginary inputs.
Relational Operator
Perform the specified relational operation on the input.
Rounding Function
Perform a rounding function.
Sign
Indicate the sign of the input.
Slider Gain
Vary a scalar gain using a slider.
Sum
Generate the sum of inputs.
Trigonometric Function
Perform a trigonometric function.

Table 9-6: Functions & Tables Library Blocks 
Block Name
Purpose
Direct Look-Up Table (n-D)

Fcn
Apply a specified expression to the input.
Look-Up Table
Perform piecewise linear mapping of the input.
Look-Up Table (2-D)
Perform piecewise linear mapping of two inputs.
Look-Up Table (n-D)
Perform piecewise linear or spline mapping of two or more inputs.
MATLAB Fcn
Apply a MATLAB function or expression to the input.
S-Function
Access an S-function.

Table 9-7: Nonlinear Library Blocks 
Block Name
Purpose
Backlash
Model the behavior of a system with play.
Coulomb & Viscous Friction
Model discontinuity at zero, with linear gain elsewhere.
Dead Zone
Provide a region of zero output.
Manual Switch
Switch between two inputs.
Multiport Switch
Choose between block inputs.
Quantizer
Discretize input at a specified interval.
Rate Limiter
Limit the rate of change of a signal.
Relay
Switch output between two constants.
Saturation
Limit the range of a signal.
Switch
Switch between two inputs.

Table 9-8: Signals & Systems Library Blocks 
Block Name
Purpose
Bus Selector
Output selected input signals.
Configurable Subsystem
Represent any block selected from a specified library.
Data Store Memory
Define a shared data store.
Data Store Read
Read data from a shared data store.
Data Store Write
Write data to a shared data store.
Data Type Conversion
Convert a signal to another data type.
Demux
Separate a vector signal into output signals.
Enable
Add an enabling port to a subsystem.
From
Accept input from a Goto block.
Goto
Pass block input to From blocks.
Goto Tag Visibility
Define the scope of a Goto block tag.
Ground
Ground an unconnected input port.
Hit Crossing
Detect crossing point.
IC
Set the initial value of a signal.
Inport
Create an input port for a subsystem or an external input.
Matrix Concatenation
Concatenate array inputs.
Merge
Combine several input lines into a scalar line.
Model Info
Display revision control information in a model.
Mux
Combine several input lines into a vector line.
Outport
Create an output port for a subsystem or an external output.
Reshape
Change the dimensionality of a signal.
Probe
Output an input signal's width, sample time, and/or signal type.
Selector
Select or reorder the elements of the input vector.
Signal Specification
Specify attributes of a signal.
Subsystem
Represent a system within another system.
Terminator
Terminate an unconnected output port.
Trigger
Add a trigger port to a subsystem.
Width
Output the width of the input vector.


 Block Reference Abs