UDP Receive
Receive data over UDP network from specified remote machine
Libraries:
Instrument Control Toolbox
Description
The UDP Receive block configures and opens an interface to a specified remote address using the UDP protocol. The configuration and initialization occur once at the start of the model's execution. The block acquires data either in blocking mode or nonblocking mode during the model's run time.
This block has no input ports. It has one or two output ports based on whether you select blocking or nonblocking mode. If you select blocking mode, the block has one output port, Data, corresponding to the data it receives. If you do not select blocking mode, the block has two output ports, Data and Status.
This block uses a First In, First Out (FIFO) buffer to receive data. At each time step,
the Data port returns the requested values from the buffer. In
nonblocking mode, the Status port indicates if the block has received new
data. If the Status port displays 1
, new data is
available and if the Status port displays
0
, no new data is available.
Note
You must have a license for both Instrument Control Toolbox™ and Simulink® to use this block.
Other Supported Features
The UDP Receive block supports the use of Simulink accelerator and rapid accelerator modes. You can speed up the execution of Simulink models by using these modes. For more information on these simulation modes, see Acceleration (Simulink).
The UDP Receive block supports the use of model referencing. This feature lets your model include other Simulink models as modular components.
For more information on these features, see the Simulink documentation.
Ports
Output
Parameters
Version History
Introduced in R2007b
See Also
UDP Send | Serial Configuration | Serial Receive | Serial Send | TCP/IP Receive | TCP/IP Send