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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Period | sampleTime | 0.01 | Sample time for input update |
| Boolean | blockDuringFirstSample | false | If true, block on datagram receive during first sampling of block equations, otherwise skip blocking for first sampling |
| Incoming data | |||
| Boolean | autoBufferSize | true | true, buffer size is deduced automatically, otherwise set it manually |
| Integer | userBufferSize | 16*1024 | Buffer size of message data in bytes (if not deduced automatically) |
| Integer | port_recv | 10001 | Listening port number of the server. Must be unique on the system |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_DeviceDrivers.Blocks.Interfaces.PackageOut | pkgOut |