User Datagram Protocol (UDP) is a transport protocol layered on top of the Internet Protocol (IP). Use the UDP interface for reading and writing both binary data and ASCII data. You can read and write to servers, computers, instruments, and use applications such as streaming video and audio, point-of-sale systems, and other business applications.
|Connect to UDP socket|
|Start or stop echo UDP server|
|Set terminator for ASCII string communication with UDP socket|
|Set callback function and trigger condition for communication with UDP socket|
|Set multicast properties for communication with UDP socket|
Create a UDP object to establish a connection between MATLAB® and the remote host.
These are the minimum steps required to communicate between two hosts over UDP.
Explore ASCII write and read operations with a UDP object.
Explore binary write and read operations with a UDP object.
Enhance UDP communication by executing a callback function when a specified event occurs.
Compare the TCP/IP and UDP protocols to determine which to use.
Connect to a UDP socket using
udpport instead of
Troubleshoot the UDP interface.
Troubleshoot connecting to a UDP socket.
Troubleshoot when you receive no data and you get the warning message: 'udpport' unable to read any data.
Troubleshoot when you receive some data and you get the warning message: 'udpport' unable to read all requested data.