modelTestSerialPackager_TCPIPServerMultipleClients

Example for configuring a TCP/IP server so that multiple clients can connect

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

Information

This example uses array components of TCP/IP server receive and send blocks as well as related SerialPackager blocks. It needs suitable connecting TCP/IP clients for giving meaningful results.

Caveat: Notice that it was necessary to modify the Modelica code that resulted from graphical editing in Dymola, by manually adapting the underlying Modelica code, namely:

AddInteger addInteger[2](each n=3, each nu=1)
connect(addInteger[1:2].pkgOut[1], tCPIPSend[1:2].pkgIn)

Components

TypeNameDefaultDescription
Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerConfigtcpipserverconfig
Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerReceive[2]tCPIPReceive
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetInteger[2]getInteger
OperatingSystem.RealtimeSynchronizerealtimeSynchronize
Packaging.SerialPackager.Packager[2]packager
Packaging.SerialPackager.AddInteger[2]addInteger
Communication.TCPIPServerSend[2]tCPIPSend
Process[2]process

Contents

NameDescription
Processprotected