Main Content

UDP Send

Send UDP message to UDP host

Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-K64F Board add-on.

  • UDP Send block

Libraries:
Simulink Coder Support Package for NXP FRDM-K64F Board

Description

The UDP Send block sends an input vector as UDP message over an IP network port to a UDP host.

The block sends messages from the port number specified in the Local IP Port (-1 for automatic port assignment) parameter.

Specify the IP address and the port number of the receiving host in the Remote IP address (255.255.255.255 for broadcast) and Remote IP Port parameter.

The block sends the UDP messages in non-blocking mode.

Ports

Input

expand all

The port accepts an array and sends it as UDP messages over an IP network port to the receiving host.

Data Types: int8 | uint8 | int16 | uint16 | int32 | uint32 | single | double | Boolean

Parameters

expand all

Specify the IP address or the host name to which the block sends the UDP messages. To broadcast messages to all the receiving hosts, specify 255.255.255.255.

Specify the port number of the application on the receiving host to which you want to send the messages. Match the remote port number with the local port number of the receiving host.

Specify the port number of the application from which you want to send the messages.

The default value, -1, sets the local port number to a random available port number and uses that port to send the messages. If the receiving host expects UDP messages from a particular port number, specify that number.

Version History

Introduced in R2017a