Subsystem
The block for creating the hierarchy of the model.
blockType: SubSystem
Path in the library:
|
Description
Block Subsystem contains a subset of the blocks inside the model or system. Block Subsystem It can represent a virtual subsystem or an atomic subsystem.
-
An atomic subsystem is a subsystem whose contents are interpreted as a single whole (atomic execution). Allows you to create conditionally executable subsystems: that is, those that are triggered only when a certain event occurs.
-
A virtual subsystem is a subsystem that is executed neither conditionally nor atomically. When determining the order of execution, the blocks of such a subsystem are considered to be located at the same level as the subsystem itself. The virtual subsystem serves solely to increase the readability of the model and does not affect its operation in any way.
To switch a virtual system to an atomic one, select the checkbox Treat as atomic unit.
To create a subsystem, copy the block Subsystem from the library Ports & Subsystems into the model. Then add the blocks to the subsystem by opening the block Subsystem and by copying the blocks into it.
Ports
Input
#
In1
—
signal input to the subsystem
scalar | vector | the matrix
Details
Block placement In1 the subsystem adds an external input port to the block Subsystem. The port label matches the block name. In1.
Use blocks In1 to receive signals from the local environment.
| Data types |
|
| Complex numbers support |
No |
Output
#
Out1
—
the output signal from the subsystem
scalar | vector | the matrix
Parameters
Main
#
Sample Time —
the interval between the calculation steps
SampleTime (real number / vector of two real numbers)
Details
The interval between the calculation steps (a non-negative number). To inherit the calculation step, set this parameter to −1.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Treat as atomic unit —
the ability to perform the subsystem as a single unit
Logical
Details
The subsystem can be considered as a single unit when determining the order of execution of blocks in the model.
-
If the checkbox is not checked, then all blocks in the subsystem are considered to be at the same level in the hierarchy of the model as the subsystem when determining the order of execution of blocks. This can lead to alternating execution of block methods in the subsystem with execution of block methods outside the subsystem.
-
If the check box is selected, then all blocks in the subsystem are considered as a single unit when determining the order of execution of blocks. For example, when it is necessary to calculate the output of a subsystem, the system calls the output methods of all blocks in the subsystem before calling the output methods of other blocks at the same level as the block. Subsystem.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |