TCP Receive

Receive data over TCP network from a remote device

  • Library:
  • Simulink Real-Time / TCP


Receive data sent from a remote client device to a server application on a target computer.



expand all

When Enable > 0, the block attempts to receive data sent to the remote device.

As a best practice, connect the Status output of a TCP configure block to the Enable input of the associated TCP Send and TCP Receive blocks.


expand all

The parameter Receive width determines the maximum size of the data vector.

Data Types: uint8

To test whether the number of data items exceeds the width of the data output port, use this value.


expand all

This property is read-only.

The block receives the list of IP address and port pairs from the TCP configuration blocks in the model.

Programmatic Use

Block Parameter: socketAddress,socketPort

Maximum number of uint8 values that the block expects to receive from the client device.

Programmatic Use

Block Parameter: rcvWidth

Enter the base sample time or a multiple of the base sample time. -1 means that sample time is inherited.

Programmatic Use

Block Parameter: sampleTime

Introduced in R2017a