modelTestSerialPackager_String
Example for using the SerialPackager with the AddString and GetString block
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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.IntegerExpression | integerExpression | ||
| ClockedBlocks.Packaging.SerialPackager.Packager | packager | ||
| ClockedBlocks.Packaging.SerialPackager.PackUnsignedInteger | packInt | ||
| ClockedBlocks.Packaging.SerialPackager.AddInteger | addInteger | ||
| Modelica.Blocks.Sources.IntegerExpression | integerExpression2 | ||
| ClockedBlocks.Packaging.SerialPackager.ResetPointer | resetPointer | ||
| ClockedBlocks.Packaging.SerialPackager.UnpackUnsignedInteger | unpackInt | ||
| ClockedBlocks.Packaging.SerialPackager.GetInteger | getInteger | ||
| Modelica.Clocked.IntegerSignals.Sampler.SampleClocked | sample1 | ||
| Modelica.Clocked.IntegerSignals.Sampler.SampleClocked | sample3 | ||
| Modelica.Clocked.ClockSignals.Clocks.PeriodicRealClock | periodicRealClock | ||
| Packaging.SerialPackager.AddString | addString | ||
| Packaging.SerialPackager.GetString | getString | ||
| Modelica.Blocks.Sources.IntegerExpression | findString | ||
| Utilities.StringExpression | stringEx |