Documentation

Simulink Real-Time Blocks

Alphabetical List By Category

Model Preparation for Real-Time Execution

I/O Connectivity

Asynchronous Event

Async Buffer Write and ReadAsync Buffer Write and Read blocks
Async IRQ SourceAsync IRQ Source block
Async Rate TransitionAsync Rate Transition block

Digital Input

Parallel Port Digital InputParallel Port Digital Input block
Parallel Port Digital Input Status BitsParallel Port Digital Input Status Bits block

Digital Output

Parallel Port Digital OutputParallel Port Digital Output block
Parallel Port Digital Output Control BitsParallel Port Digital Output Control Bits block

Displays and Logging

ScopeReal-time Scope block
Video DisplayVideo Display block
Enable ProfilerStart and stop profiler on target computer
To TargetSend data to target computer
From TargetRead data from target computer

Shared Memory

Byte Reversal/Change EndianessReverse little-endian data for big-endian processor
Shared Memory PackShared memory pack
Shared Memory UnpackShared memory unpacking

Target Management

Target I/O Management
From FileRead data from file on target computer
Execution Parameters
Current Available Stack SizeCurrent Available Stack Size returns free stack available
Get Overload CounterGet Overload Counter returns number of CPU overloads
Set Overload CounterSet current CPU overload count
Minimum Available Stack SizeGet the smallest amount of free stack available
Task Execution TimeTask execution time (TET), in seconds
Target Information
CPU TemperatureReturn current CPU temperature in Celsius
Elapsed TimeRead target computer time
Time Stamp DeltaTime stamp delta

Utilities

Byte PackingConstruct data frames
Byte UnpackingDeconstruct data frames
Bit PackingConstruct data frames
Bit UnpackingDeconstruct data frames
Byte Reversal/Change EndianessReverse little-endian data for big-endian processor

Communication Protocols

CAN

CAN PackPack individual signals into CAN message
CAN UnpackUnpack individual signals from CAN messages

EtherCAT

EtherCAT InitInitialize EtherCAT Master node with data in the EtherCAT Network Information (ENI) file
EtherCAT Get NotificationsCollect notifications from the EtherCAT bus
EtherCAT PDO ReceiveReceive data from slave device represented by process data object
EtherCAT PDO TransmitSend data to slave device represented by process data object
EtherCAT Sync SDO UploadRead data synchronously from slave device represented by service data object
EtherCAT Sync SDO DownloadTransmit data synchronously to slave device represented by service data object
EtherCAT Async SDO UploadRead data asynchronously from slave device represented by service data object
EtherCAT Async SDO DownloadTransmit data asynchronously to slave device represented by service data object
EtherCAT Get StateGet state of EtherCAT network
EtherCAT Set StateSet state of EtherCAT network

Ethernet

Real-Time Ethernet ConfigurationConfigure network interface for real-time raw Ethernet communication
Create Ethernet PacketCreate Ethernet packet based on the MAC address and EtherType provided
Ethernet TxTransmit data over Ethernet network
Ethernet RxReceive data over Ethernet network
Extract Ethernet PacketExtract data from Ethernet packet
Header ExtractExtract header data from Ethernet packet
Filter AddressFilter Ethernet packets based on MAC address
Filter TypeFilter Ethernet packets based on EtherType
Ethernet InitInitialize network card for real-time raw Ethernet communication
Buffer MngmtInitialize network buffer pools
ComposeCreate a network buffer from raw input data
ExtractExtract raw data from network buffer
ManageOutput or buffer packets as indicated by the parameters
Chain SizeDetermine the number of network buffers in the chain
MergeMerge the incoming network buffer chains into one
SplitSplit a network buffer chain
LinkLink vector of network buffers into a chain
UnlinkUnlink a chain into a vector of network buffers

J1939

J1939 Protocol StackJ1939 Protocol Stack instance
J1939 Controller ApplicationJ1939 Controller Application
J1939 Database (CANdb) SetupJ1939 Database Setup
J1939 Message TriggerJ1939 Message Triggering
J1939 Transmit MessageJ1939 Transmit
J1939 Receive MessageJ1939 Receive Message

IEEE 1588 Precision Time Protocol

IEEE 1588 Real-Time UDPExecute IEEE 1588 Precision Time Protocol
IEEE 1588 EthernetExecute IEEE 1588 Precision Time Protocol
IEEE 1588 Sync StatusOutput synchronization status of Precision Time Protocol
IEEE 1588 Read ParameterOutput Precision Time Protocol status parameter value
IEEE 1588 Sync ExecutionSynchronize model execution to Precision Time Protocol clock

TCP

TCP Client ConfigureConfigure a TCP client application that uses the specified Ethernet interface
TCP Server ConfigureConfigure TCP server application that uses the specified Ethernet interface
TCP SendSend data over TCP network to a remote device
TCP ReceiveReceive data over TCP network from a remote device
Byte PackingConstruct data frames
Byte UnpackingDeconstruct data frames
Byte Reversal/Change EndianessReverse little-endian data for big-endian processor

Real-Time UDP

UDP ConfigureInitialize Ethernet network interface to use for UDP communication in real-time applications
UDP SendSend data over UDP network to a remote device
UDP ReceiveReceive data over UDP network from a remote device
Byte PackingConstruct data frames
Byte UnpackingDeconstruct data frames
Byte Reversal/Change EndianessReverse little-endian data for big-endian processor

RS-232

ASCII Encode/Decode (Composite)ASCII Encode/Decode
ASCII Decode V2ASCII Decode V2
RS232 State (Composite)RS232 State block
FIFO Read/Write (Composite)FIFO Read/Write
FIFO Read Binary (Composite)FIFO Read Binary
FIFO Read HDRS (Composite)FIFO Read HDRS block
RS-232/RS-422/RS-485 Send/Receive (Composite)RS-232/RS-422/RS-485 Send/Receive block
Modem Control (Composite)Modem Control block
Modem Status (Composite)Modem Status block
RS-232/422/485 Board Setup (Commtech) and Interrupt Check (Quatech) (Composite)RS-232/422/485 Board Setup (Commtech) and Interrupt Check (Quatech) block
RS-232/422/485 Enable TX Interrupt (Composite)RS-232/422/485 Enable TX Interrupt block
RS-232/422/485 Filter Interrupt Reason (Composite)RS-232/422/485 Filter Interrupt Reason block
RS-232/422/485 Read Hardware FIFO (Composite)RS-232/422/485 Read Hardware FIFO block
RS-232/422/485 Read Int(errupt) Status (Composite)RS-232/422/485 Read Int(errupt) Status
RS-232/422/485 Setup (Composite)RS-232/422/485 Setup block
RS-232/422/485 Write Hardware FIFO (Composite)RS-232/422/485 Write Hardware FIFO block

USB Video

From USB Video DeviceFrom USB Video Device block
USB Video Device ListUSB Video Device List block
Video DisplayVideo Display block
Image ReceiveReceive video image
Image TransmitTransmit video frame
JPEG CompressionJPEG Compression block
JPEG DecompressionJPEG Decompression block

XCP

XCP ConfigurationConfigure XCP slave connection
XCP Data StimulationPerform data stimulation on selected measurements
XCP Data AcquisitionAcquire selected measurements from configured slave
XCP CAN Transport LayerGenerate and consume XCP messages that are transported by CAN hardware
XCP UDP Transport LayerSend and receive XCP messages over real-time UDP

Control and Instrumentation

Signal Monitoring and Tracing with Simulink Real-Time Explorer

ScopeReal-time Scope block

Signal Logging with Simulink Real-Time Explorer

ScopeReal-time Scope block

Automated Testing

Test AssessmentAssess simulation testing scenarios, function calls, and assessments
Test SequenceCreate simulation testing scenarios, function calls, and assessments

Performance Optimization

Profiling and Optimization

Enable ProfilerStart and stop profiler on target computer
Was this topic helpful?