Receive data over UDP network on a dedicated network interface
Simulink® Real-Time™ for Real-Time UDP
The Receive block receives UDP data on the specified local (destination)
port. To receive all
data sent to this port, set Source IP address to
otherwise set Source IP address to a valid IP
IP fragmentation is not supported in Simulink Real-Time UDP blocks. The packet payload is limited to 1472 bytes (1500 bytes UDP packet size − 28 bytes combined packet header size).
Number of new bytes received, and otherwise
The default block behavior is to keep the previous output when there is no new data.
From the list, select a unique number to identify the Ethernet board. Select the same Device ID as the one you selected for the Real-Time UDP Configuration block.
Enter a valid IP address as a dotted decimal string, for example,
You can also use a MATLAB® expression that returns a valid IP
address as a string. With Local (destination) port,
this parameter defines the source address.
The default address,
0.0.0.0, causes the
block to accept UDP packets from any
accessible computer. If set to a specific IP address, packets arriving
from only that IP address are received.
Specify the port of the target computer or device from which to receive the UDP packets. With Source IP address, this parameter defines the source address.
Enter the output port width.
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).