UDP Send

Send UDP data to remote host

Description

The UDP Send block sends UDP (User Datagram Protocol) data to a remote host.

Ports

Input

expand all

Input data signal, specified as a numeric vector. The block sends this data as UDP data to the remote IP address at the remote IP port.

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

Parameters

expand all

Specify the IP address of the remote host to which you want to send UDP data. To broadcast the UDP message, retain the default value, '255.255.255.255'.

Specify the port number of the remote host to which you want to send UDP data. The port number must be an integer from 1 to 65,535.

To enable the system automatically assign the local IP port number from which data is sent, select Assign automatically. To specify the local IP port number using the Local IP port parameter, select Specify via dialog.

Specify the local IP port number of the application on the hardware board from which you want to send the data. The port number can must be an integer from 1 to 65,535. The default value, -1 assigns any randomly available port as the local IP port.

If the receiving host accepts UDP data from a particular port number, set this parameter to that numbe.

Dependencies

To enable this parameter, set Local IP port source to Specify via dialog.

See Also

Introduced in R2015a