Main Content

TCP/IP Receive

Receive data over TCP/IP network from remote host

Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.

  • TCP/IP Receive block

Libraries:
Simulink Support Package for Arduino Hardware / Ethernet Shield

Description

Use the TCP/IP Receive block to receive data from a remote host or another target hardware over a network.

Ports

Output

expand all

The block outputs data as an [Nx1] array.

Data Types: uint8

This port shows the data received status. The status value 1 means successful receipt of data.

Data Types: int32

Parameters

expand all

Enter the port number through which you want the TCP/IP server to initiate the message reception. The server port numbers range from 0 to 65535.

Specify how often this block reads the TCP/IP messages, in seconds. Enter a value greater than zero. This value defaults to a sample time of 1 second.

Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

Version History

Introduced in R2013b