.Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Packager

Information

The Packager block creates a packager object to which payload can be added by subsequent blocks.

Advanced parameter settings

With the default parameter settings the buffer size (size of the serialized package), as well as the sample time of the block is determined automatically by backward propagation. However, that values may also be set manually. An example there this functionality is used is the TestSerialPackager model. In that model the parameter sampleTime is explicitly set, since backward propagation is not possible in that case.

Examples

The block is used in several examples, e.g. in, TestSerialPackager_UDP. The figure below shows an arrangement in which a Packager object is created and after that a payload of three Real values and one Integer value is added, serialized and finally sent using UDP.


Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos