Main Content

UDP Send

Send UDP message

Add-On Required: This feature requires the Embedded Coder Support Package for Intel SoC Devices add-on.

  • UDP Send block

Libraries:
Embedded Coder Support Package for Intel SoC Devices

Description

The UDP Send block transmits an input vector as a user datagram protocol (UDP) message over an IP network port.

Examples

Ports

Input

expand all

Input signal of messages to be sent to the remote IP address and port.

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

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

To set the block parameter value programmatically, use the set_param function.

To get the block parameter value programmatically, use the get_param function.

Specify the IP address to which the block sends the message. To broadcast the UDP message, retain the default value '255.255.255.255'.

Programmatic Use

Block Parameter: localURL

Specify the IP port where the block sends the message.

Programmatic Use

Block Parameter: remotePort

To let the system automatically assign the port number, select Assign automatically. To specify the IP port number using the Local IP port parameter, select Specify via dialog.

Programmatic Use

Block Parameter: localPortSource

Specify the IP port number from which the block sends the message. If the receiving address expects messages from a particular port number, enter that number here.

Programmatic Use

Block Parameter: localPort

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2014b