encapsulated function constructor import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.LCM; input String provider "\"udpm://\" - UDP multicast, \"file://\" - logfile, \"memq://\" - memory queue"; input String address "IP address or logfile name"; input Integer port "Port (only relevant for UDP multicast provider)"; input Integer receiver = 1 "0 - sender, 1 - receiver"; input String channel "Receive channel"; input Integer bufferSize = 16*1024 "Size of receive buffer"; input Integer queueSize = 30 "Size of message queue"; output LCM lcm; end constructor;