modelUDPBlockingReceive

A block for receiving UDP packets which blocks if no new data is available

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.UDPconnection (Base icon for models of network connections), Modelica.Icons.UnderConstruction (Icon for classes that are still under construction).

Information

Supports receiving of User Datagram Protocol (UDP) datagrams.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.PeriodsampleTime0.01Sample time for input update
BooleanblockDuringFirstSamplefalseIf true, block on datagram receive during first sampling of block equations, otherwise skip blocking for first sampling
Incoming data
BooleanautoBufferSizetruetrue, buffer size is deduced automatically, otherwise set it manually
IntegeruserBufferSize16*1024Buffer size of message data in bytes (if not deduced automatically)
Integerport_recv10001Listening port number of the server. Must be unique on the system

Connectors

TypeNameDefaultDescription
Modelica_DeviceDrivers.Blocks.Interfaces.PackageOutpkgOut