UDP Configure

Initialize Ethernet network interface to use for UDP communication in real-time applications

  • Library:
  • Simulink Real-Time / Real-Time UDP


The Real-Time UDP Configuration block configures a dedicated Ethernet network for real-time UDP operation.

The combination of Local IP Address and Subnet mask must be unique across all Ethernet cards in the target computer, including the card for communicating between the development and target computers. Distinguish cards by specifying a different subnet for each. The subnet is the IP address masked by the subnet mask.


expand all

General Parameters

Enter the IP address for the dedicated Ethernet board.

The addresses and are invalid local IP addresses.

Programmatic Use

Block Parameter: ipAdd

Mask that designates a logical subdivision of a network.

Programmatic Use

Block Parameter: snMask

The gateway must be within the network.

To indicate that a gateway is not being used, enter (the default). The address is an invalid gateway IP address.

Programmatic Use

Block Parameter: gwAdd

Enter the PCI bus number for the Ethernet card.

Programmatic Use

Block Parameter: PciBus

Enter the PCI slot number for the Ethernet card.

Programmatic Use

Block Parameter: PciSlot

Enter the PCI function number for the Ethernet card.

Programmatic Use

Block Parameter: PciFunction

Multicast Parameters

When you select Enable multicast, the UDP multicast parameters become visible.

Example: on

Programmatic Use

Block Parameter: enableMulticast

Each IP address and corresponding mask parameter set configure the UDP multicast operations. The multicast IP address and corresponding mask values are AND'ed, and the packets to the destination addresses that match this value are sent through this interface. In the example values, the two pairs of address and mask indicate that all packets sent to the IP address corresponding to 224.0.1.xxx and 224.0.2.xxx are sent out through the card at [5,0,0].

The address list can include up to 20 multicast addresses. The combination of multicast IP and masks (multicast subnets) cannot overlap with those values in other configuration blocks. Validation for this overlap follows validation of the Local IP Address and subnet mask combinations.

Example: {'',''}

Programmatic Use

Block Parameter: multicastAdd

See description of Multicast IP address list parameter.

Example: {'',''}

Programmatic Use

Block Parameter: multicastMask

Introduced in R2016b