Documentation

Send

Send data over UDP network on a dedicated network interface

Library

Simulink® Real-Time™ for Real-Time UDP

Description

The Send block sends UDP packets from Local (source) port to Destination port. To broadcast to all devices, set Destination IP address to 255.255.255.255, otherwise set Destination IP address to a valid IP address.

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).

Block Inputs

NameDescription

Data

Vector of uint8 containing data to send

N

Number of bytes to send

Block Parameters

Device ID

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.

Destination IP address

Specify the IP address of the target computer or other device to which you want to send the UDP packets. To broadcast the packets to all listening computers or devices, enter 255.255.255.255. With Destination port, this parameter defines the destination address.

Destination port

Specify the target computer port to which you want to send the UDP packets. With Destination IP address, this parameter defines the destination address.

Local (source) port

Specify the target computer port from which you want to send the UDP packets.

Enter -1 to automatically assign a port for the target computer.

Sample time

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

See Also

|

External Websites

Was this topic helpful?