UDP Consume

Consume a UDP packet


Simulink® Real-Time™ Library for IP


The UDP Consume block outputs a network buffer with raw data that you can output to a Network Buffer library block. To create this output, the block:

  1. Receives as input a network buffer that contains a UDP header.

  2. Removes the UDP header.

  3. Outputs the updated network buffer.

The block has two output ports:

  • Buffers

    Chain of network buffers.

  • Chain size

    Number of buffers on the chain.

Block Parameters

IP Group

Enter a number in the range 0 to 7. This value identifies the IP Init block inside the Real-Time UDP Configuration subsystem that is associated with this block.

Output port width

Enter the width of the port. A value other than 0 creates the following output ports:

  • Source IP Address

  • Destination IP Address

  • Local UDP Port

  • Remote UDP Port

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Was this topic helpful?