The Packager
block creates a packager object to which payload can be added by subsequent blocks.
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.
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.