blockUDPSend

A block for sending UDP datagrams

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_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

Information

Supports sending of User Datagram Protocol (UDP) datagrams.

Parameters

TypeNameDefaultDescription
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant
Outgoing data
BooleanautoBufferSizetruetrue, buffer size is deduced automatically, otherwise set it manually.
IntegeruserBufferSize16*1024Buffer size of message data in bytes (if not deduced automatically).
StringIPAddress"127.0.0.1"IP address of remote UDP server
Integerport_send10002Target port of the receiving UDP server

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Interfaces.PackageInpkgIn