UDP Receive
Receive UDP packet
Libraries:
Embedded Coder /
Embedded Targets /
Host Communication
Description
The UDP Receive block receives UDP packets from an IP network port and saves them to its buffer. Due to the nature of the UDP transmission protocol, the receiver is not guaranteed to receive all the data packets that you send using the UDP Send block. With each sample, the block outputs the contents of a single UDP packet as a data vector.
The local IP port number on which the block receives the UDP packets is tunable in the
generated code. The generated code for this block relies on prebuilt .dll
files. You can run this code outside the MATLAB® environment or redeploy it, but you must account for the extra
.dll
files. The packNGo
function creates a ZIP
file that contains the pieces required to run or rebuild this code. For more details, see
How To Run a Generated Executable Outside MATLAB (DSP System Toolbox).
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2011a