Send UDP message to UDP host
Simulink Coder Support Package for NXP FRDM-K64F Board
The UDP Send block sends an input vector as UDP message over an IP network port to a UDP host.
The block sends messages from the port number specified in the Local IP Port (-1 for automatic port assignment) parameter.
Specify the IP address and the port number of the receiving host in the Remote IP address (255.255.255.255 for broadcast) and Remote IP Port parameter.
The block sends the UDP messages in non-blocking mode.
Port_1— Send UDP messages to another UDP host
The port accepts an array and sends it as UDP messages over an IP network port to the receiving host.
Remote IP address (255.255.255.255 for broadcast)— IP address of the receiving UDP host
Specify the IP address or the host name to which the block sends
the UDP messages. To broadcast messages to all the receiving hosts,
Remote IP Port— IP port on the receiving UDP host
Any integer between 1 and 65535
Specify the port number of the application on the receiving host to which you want to send the messages. Match the remote port number with the local port number of the receiving host.
Local IP Port (-1 for automatic port assignment)— IP port on the sending UDP host
Specify the port number of the application from which you want to send the messages.
The default value,
-1, sets the local port
number to a random available port number and uses that port to send
the messages. If the receiving host expects UDP messages from a particular
port number, specify that number.