This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

UDP Send

Send UDP message





The UDP Send block transmits an input vector as a UDP message over an IP network port.

    Note:   Some Simulink® blocks and .exe files built from models that contain those blocks require shared libraries, such as .dll files on Windows®. The UDP Send block requires networkdevice.dll. To meet this requirement, open the packNGo topic, and follow the example to package the code files for your model. The resulting compressed folder contains the .dll files that the model requires, including networkdevice.dll. To run this type of .exe file outside a MATLAB® environment, place the required .dll files in the same folder as the .exe file, or place them in a folder on the Windows system path.


IP address ('' for broadcast)

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

Remote IP port

Specify the port to which the block sends the message. The value defaults to 25000, but the values range from 1–65535.

    Note:   On Linux®, to set the IP port number below 1024, run MATLAB with root privileges. For example, at the Linux command line, enter:

    sudo matlab

Local IP port source

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.

Local IP port

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.

See Also

UDP Receive

Introduced in R2010a

Was this topic helpful?