UDP Send
Send UDP message
Add-On Required: This feature requires the Embedded Coder Support Package for Intel SoC Devices add-on.
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
Get Started with Embedded Coder Support Package for Intel SoC Devices
Use Embedded Coder® Support Package for Intel® SoC Devices to run a Simulink® model on an Intel SoC device.
Ports
Input
Port_1 — Input Signal
N-by-1 array
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
IP address — IP address
'255.255.255.255' (default) | character vector
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
|
Remote IP port — Remote IP port
25000 (default) | 1–65535
Enter the IP port where the block sends the message.
Programmatic Use
Block Parameter:
remotePort
|
Default:
25000
|
Local IP port source — Local IP port source
Assign automatically
(default) | Specify via dialog
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
|
Local IP port — Local IP port
-1 (default) | 1–65535
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)