modelTestSerialPackager_String

Example for using the SerialPackager with the AddString and GetString block
Diagram of TestSerialPackager_String

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

Information

Using Strings in input or output connectors is not very common in Modelica. There are currently no standard connectors for Strings available in the MSL. Nevertheless, the SerialPackager package provides blocks for Strings, too. The use of this blocks is demonstrated in this example.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.IntegerExpressionintegerExpression
ClockedBlocks.Packaging.SerialPackager.Packagerpackager
ClockedBlocks.Packaging.SerialPackager.PackUnsignedIntegerpackInt
ClockedBlocks.Packaging.SerialPackager.AddIntegeraddInteger
Modelica.Blocks.Sources.IntegerExpressionintegerExpression2
ClockedBlocks.Packaging.SerialPackager.ResetPointerresetPointer
ClockedBlocks.Packaging.SerialPackager.UnpackUnsignedIntegerunpackInt
ClockedBlocks.Packaging.SerialPackager.GetIntegergetInteger
Modelica.Clocked.IntegerSignals.Sampler.SampleClockedsample1
Modelica.Clocked.IntegerSignals.Sampler.SampleClockedsample3
Modelica.Clocked.ClockSignals.Clocks.PeriodicRealClockperiodicRealClock
Packaging.SerialPackager.AddStringaddString
Packaging.SerialPackager.GetStringgetString
Modelica.Blocks.Sources.IntegerExpressionfindString
Utilities.StringExpressionstringEx