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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Packager | packager | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddReal | addReal | ||
| Modelica.Blocks.Sources.RealExpression[3] | realExpression | ||
| Modelica_DeviceDrivers.Blocks.Communication.TCPIP_Client_IO | tcpipClient | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddInteger | addInteger | ||
| Modelica.Blocks.Sources.IntegerExpression | integerExpression | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetReal | getReal | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetInteger | getInteger | ||
| Packaging.SerialPackager.AddFloat | addFloat | ||
| Packaging.SerialPackager.GetFloat | getFloat | ||
| Modelica.Blocks.Sources.RealExpression[2] | realExpression1 |