UDP Receive

Receive UDP data from remote host

  • Library:
  • Simulink Support Package for Apple iOS Devices / Communication

Description

The UDP Receive block receives user datagram protocol (UDP) data from a remote host. The block reads available UDP data from the socket buffer and outputs the data as a vector.

Ports

Output

expand all

UDP data received from a remote host, returned as a numeric vector. Set the data type of this output by using the Data type parameter.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

Size of received UDP packet, returned as a nonnegative scalar. While the block waits for new data to arrive, this port outputs a 0. When new data arrives, this port value changes to the length of the received UDP packet.

Data Types: uint16

Parameters

expand all

Specify the IP port number of the local device. The local device is the iOS device that is running the model.

Set the data type of the vector elements in the output. Match this data type with the data input used to create the UDP packets.

Specify the number of data elements in each UDP packet. Match the data size used to create the UDP packets.

Specify how often this block reads the port buffer. Enter a value greater than zero.

Note

Smaller values for Sample time require the processor to complete the same number of instructions in less time, which can cause task overruns.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

See Also

Introduced in R2015a