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

Enter 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
Default: 0.0.0.0

Enter the IP port where the block sends the message.

Programmatic Use

Block Parameter: remotePort
Default: 25000

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
Type: Automatically determine |
Values: Specify via dialog |
Default: Automatically determine

Enter 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
Default: -1

Extended Capabilities

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

Version History

Introduced in R2014b