Receive data over TCP network from a remote device
Simulink Real-Time / IP
The TCP Receive block receives data sent from a remote client device to a server application on a target computer.
Enable — Allow data reception
0, the block
attempts to receive data sent to the remote
As a best practice, connect the
of a TCP configure block to the
Enable input of
the associated TCP Send and TCP Receive blocks.
Data — Data that is received from the remote client
The parameter Receive width determines the maximum size of the data vector.
Length — Actual size of data vector
To test whether the number of data items exceeds the width of the data output port, use this value.
Receive using — List of IP address and port pairs
This parameter is read-only.
The block receives the list of IP address and port pairs from the TCP configuration blocks in the model.
5560 are reserved for Simulink Real-Time
Receive width — Maximum expected length of data vector
Maximum number of
uint8 values that the block expects
to receive from the client
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2020b