encapsulated function destructor import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.SerialPort; input SerialPort sPort; end destructor;