modelTestSerialPackager_TCPIP

Example for combining TCP/IP and SerialPackager blocks

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The tcpipClient block tries to connect to the server on local TCP port 27015. Once the client connects, the client sends data to the server and receives any data send back from the server. The client then closes the socket and exits.

There is test server provided that echos the received data back to the client.

Components

TypeNameDefaultDescription
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Packagerpackager
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddRealaddReal
Modelica.Blocks.Sources.RealExpression[3]realExpression
Modelica_DeviceDrivers.Blocks.Communication.TCPIP_Client_IOtcpipClient
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddIntegeraddInteger
Modelica.Blocks.Sources.IntegerExpressionintegerExpression
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetRealgetReal
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetIntegergetInteger
Packaging.SerialPackager.AddFloataddFloat
Packaging.SerialPackager.GetFloatgetFloat
Modelica.Blocks.Sources.RealExpression[2]realExpression1