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.

Real-Time UDP

Real-time communication with low-level internet protocol

Universal Datagram Protocol (UDP) is a packet-based protocol that uses an Ethernet board as physical layer. Each UDP packet contains bytes provided by an application layer. You can transfer data using this protocol from a real-time application that is executing on the target computer. For more information about the UDP standard, see UDP Transport Protocol.

The Simulink® Real-Time™ implementation can support either a dedicated Ethernet network or a shared Ethernet network.

To create a dedicated Ethernet network, use a separate Ethernet board that is compatible with PCI standard bus architectures, such as PCI, PCI Express®, and PXI®. Configure the UDP Configure block with the PCI bus and slot number of the dedicated Ethernet board. You can run this implementation of the protocol from a real-time application that is running on the target computer. You can use it to transfer data to and from a UDP-compatible device.

To create a shared Ethernet network, use the same Ethernet hardware port as the target computer uses to communicate with the development computer. Configure the UDP Send and UDP Receive blocks to use the host-target connection setting. In this mode, you do not need a UDP Configure block. You can run this implementation of the protocol from a real-time application that is running on the target computer. You can also run it from a Simulink model that is running on the development computer. To transfer data to and from a UDP-compatible device that is connected to this network, use a switch.


UDP Configure Initialize Ethernet network interface to use for UDP communication in real-time applications
UDP Receive Receive data over UDP network from a remote device
UDP Send Send data over UDP network to a remote device
Byte Reversal/Change Endianess Reverse little-endian data for big-endian processor
Byte Packing Construct data frames
Byte Unpacking Deconstruct data frames


UDP Transport Protocol

Learn about communication between the target computer and other devices with UDP packets.

UDP Data Exchange with Shared Ethernet Board

Learn about UDP communication via a connection that is shared between the development and target computers.

UDP Communication Setup

Use the UDP library blocks for communication with a shared and with a dedicated connection.

UDP and Variable-Size Signals

Adapt variable-size signals for processing by UDP blocks.


Real-Time UDP Troubleshooting

Eliminate problems with UDP modeling and communication.

Related Information

Featured Examples

Was this topic helpful?