functionsendToUDP

Extends from Modelica.Icons.Function (Icon for functions).

Information

The function was copied from the Modelica_DeviceDrivers library and changed to the degree that the variable "port" is no longer of the type Integer but Real instead.
  • November 2016: Adapted from Modelica_DeviceDrivers by Felix Bünning

Inputs

TypeNameDefaultDescription
Modelica_DeviceDrivers.Communication.UDPSocketsocket
StringipAddressIP address where data has to be sent
RealportPort number where data has to be sent
Modelica_DeviceDrivers.Packaging.SerialPackagerpkg
IntegerdataSizeSize of data
Realdummy

Outputs

TypeNameDefaultDescription
Realdummy2