Sub-systems are containers for blocks and are used to make large models more manageable and understandable. As sub-system can contain other sub-systems hierarchies of sub-systems can be created.
The top level sub-system is called the root sub-system. When a sub-system contains another sub-system, it is said to be the parent of that sub-system.
Blocks always belong to a sub-system - if no sub-system is created they belong to the root sub-system. The id of a block or sub-system is composed by the name of the block and the id of the parent sub-system. The id of the root sub-system is empty, which means that the id of blocks belonging to is the same as their name.
Because the sub-system controls the id of the blocks it contains, several blocks can have the same name as long as they belong to different sub-systems.
By defining inputs and outputs a sub-system becomes a stand-alone module. Modules are reusable components that can be easily connected to quickly assemble new models. Modules can be added to and from the module library.
The matrix of the matrix window and the graph of the graph window benefit greatly from the use of sub-systems. A large model, with many blocks becomes difficult to handle if it is not divided into sub-systems. Both the matrix and the graphs? let you expand and collapse sub-systems, so that you can choose which sub-systems should be open. Once you have created a sub-system, you can expand it by clicking the
button. To collapse the sub-system, click the
button. In the title bar of the windows you can select which sub-system to view from a drop down menu.
A sub-system can be created in several ways:
From the Projects window
From the Matrix window
Right-click an empty diagonal cell and select Sub-system from the pop-up menu, or
First add the object(s) that will make out the sub-system (blocks(s) and/or sub-system(s)). Select all the objects by selecting the first object, keeping SHIFT pressed and selecting the last object. The selected objects are highlighted in blue. Right-click and select Sub-system option from the pop-up menu. Now all added objects are put into the created sub-system.
From the Graph window
To edit a sub-system, right-click the sub-system in any window and select Edit. In the Blocks window, you can also show the block editor by selecting the block and clicking the
button, or by double-clicking the right-most “validation” column of the block.
The block editor has three tabs:
This page lets you edit basic properties such as name, and sub-system. See editing properties for more information.
This page lets you edit the visual properties of the block in the matrix window and graph window. See editing appearance? for more information.
See editing values for more information.
When you delete a sub-system, all its contents – blocks and nested sub-systems - are deleted.
To delete a sub-system, right click the sub-system either in the Projects window or the Matrix window and select Delete from the pop-up menu. A dialog box will ask you if you want to remove the sub-system. Click Ok to confirm or Cancel to cancel this action.