Documentation

Send

Send data over UDP network on a dedicated network interface

  • Library:
  • IEEE 1588 / PTP 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™ PTP UDP blocks. The packet payload is limited to 1472 bytes (1500 bytes UDP packet size − 28 bytes combined packet header size).

Ports

Input

expand all

Vector of uint8 containing data to send.

Number of bytes to send.

Parameters

expand all

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.

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.

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

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.

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

Introduced in R2011a

Was this topic helpful?