Real-Time Workshop User's Guide    

Supported Blocks

The Real-Time Workshop Ada Coder supports the following Simulink blocks.

Discrete Blocks
Discrete-Time Integrator
Discrete Zero-Pole
Discrete Filter
Unit Delay

Discrete State-Space

Zero-Order Hold
Discrete Transfer Fcn

Functions & Tables
Direct Look-Up Table (n-D)
Look-Up Table (2-D)
Fcn
Look-Up Table (n-D)
Interpolation (n-D) Using PreLook-Up Index Search
PreLook-Up Index Search
Look-Up Table
S-Function -- Only Target Language Compiler inlined S-functions are supported


Math Blocks  

Abs

MinMax

Bitwise Logical Operator

Product -- matrix multiplication and element-wise multiplication and division are supported. Matrix division is not supported.
Combinatorial Logic
Real-Imag to Complex
Complex to Magnitude-Angle
Relational Operator
Complex to Real-Imag
Rounding Function
Dot Product
Sign
Gain (inluding matrix/element-wise)
Slider Gain
Logic Operator

Sum

Magnitude-Angle to Complex

Trigonometric Function

Math Function

Nonlinear Blocks
Backlash
Quantizer
Coulomb & Viscous Friction
Relay
DeadZone
Saturation
Manual Switch (must Break Library Link and use discrete sample time)
Switch
Multiport Switch

Signals & Systems Blocks  
Bus Selector
Initial Condition (IC)
Configurable Subsystem
Inport
DataStore Memory
Matrix Concatenation
DataStore Read
Merge
DataStore Write
ModelInfo
Data Type Conversion
Outport
Demux
Probe
Enable
Reshape
From
Selector
Goto Tag Visibility
Subsystem
Goto
Terminator
Ground
Trigger Width
Hit Crossing

Sinks
Display -- no code is generated for this block
To File
Scope
To Workspace
Stop Simulation

Sources  
Band-Limited White Noise
Ramp -- You must break the library link and replace the clock with a discrete clock and manually set the sample time step to match the discrete clock.
Chirp Signal -- (you must break the library link and use a discrete clock)
Random Number
Constant
Sine Wave
Digital Clock
Repeating Sequence -- You must break the library link and replace the clock with a discrete clock and manually set the sample time step to match the discrete clock.
Discrete Pulse Generator
Step
From File
Uniform Random Number


 Analyzing Data with MATLAB Targeting Real-Time Systems