Main Content

UDP Send

Send data over UDP network to remote host

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

  • UDP Send block

Libraries:
Simulink Support Package for Arduino Hardware / Ethernet Shield

Description

Use the UDP Send block to send user datagram protocol (UDP) data to a remote host. Use this block when the transmission speed is of higher priority than the transmission reliability or the order of messages. During simulations without the hardware, this block does nothing.

Ports

Input

expand all

Specify the input data vector that the block transmits as a UDP packet.

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

Parameters

expand all

Specify the IP address or host name to which to send UDP packets. If you specify a host name, specify it as a string. To broadcast a UDP packet, specify 255.255.255.255.

Specify the IP port number to which to send UDP packets.

Specify the IP port number from which the block sends UDP packets. Use this parameter when the receiving address expects messages from a specific port number.

Version History

Introduced in R2013b