SubSystem – Subsystem block

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio SubSystem

Function Description
The SubSystem block is a cornerstone of hierarchical organization of block diagrams in REXYGEN. A subsystem is a container for a group of function blocks and their connections, which then appear as a single block. Nesting of subsystems is allowed, i.e. a subsystem can include additional subsystems.

The runtime core or REXYGEN executes the subsystem as an ordered sequence of blocks. Therefore the subsystem is sometimes referred to as sequence. All blocks from the surroundings of the subsystem are executed strictly before or strictly after the whole subsystem is executed.

subsystem-zoom.Subsystem_amplifier Exported by REXYGEN Studio u1 u2 y ADD 5 CNR u y GAIN 1 u 1 y 2 CNR_myvalue ??? u y Subsystem_amplifier subsystem-zoom.Subsystem_amplifier

A subsystem can be created in two ways:

  • By copying the SubSystem block from the INOUT library into the given schematic (file .mdl). After opening the created subsystem, blocks can be added to it, including input ports Inport and output ports Outport.
  • By selecting a group of blocks and choosing the Create Subsystem command from the Edit menu. The selected blocks are replaced by a subsystem, which, when opened, shows the original blocks and Inport and Outport blocks facilitating connections with blocks at the higher (original) level.

Once the subsystem is created, it can be entered by double-clicking.

For SubSystem, it is possible to create a so-called subsystem mask and define parameters whose values can be used inside the subsystem. Select the subsystem and go to the menu Edit Declaration of parameters. A dialog will appear where you can define parameters and their labels (meanings). Once a mask is defined for a subsystem, it starts behaving like a standard block – double-clicking it will open the Block properties dialog. This dialog contains the parameters defined in the subsystem mask. If you need to edit the content of a masked subsystem, select it and go to the menu Edit Open Subsystem.

Subsystems are also used for creating user-defined reusable components, which are then placed in user libraries. A library reference can be distinguished from a standard subsystem by the style of the upper border. See image below.

subsystem-vs-reference Exported by REXYGEN Studio Library reference Standard subsystem u1 u2 SW out1 out2 MyBlock1 u1 u2 SW out1 out2 MyBlock2 subsystem-vs-reference

Please refer to [3] for details on using subsystems and creating reusable components in REXYGEN.

Also see examples 0101-02 and 0101-03 demonstrating the use of subsystems. The examples are included in REXYGEN.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

2024 © REX Controls s.r.o., www.rexygen.com