Below, we present a simple Scicos session to illustrate the use of Super
Blocks. Open an empty Scicos
diagram
For that you can select New
in the
Diagram menu.
Construct a diagram by copying
blocks from the palettes, see following figure
Scicos diagram: 1/s
block is an integrator
Put the integrator and the gain
blocks in a Super Block
For that you can select Region to Super
Block in the Diagrammenu, and select the region you want to put inside a Super Block.
This can be done by clicking on the left mouse button to fix one corner
of the rectangular region, moving the mouse to get the desired rectangle,
and clicking again on the left button to fix the rectangle.
The region to be put inside the super block is defined
Super block is generated replacing the two blocks
Inspect the interior of the
Super Block
For that you select Open/Setin
the Diagram menu, and click
on the Super Block. This opens up a new Scicos Diagram in a new Scilab
graphic window.
The interior of the Super Block
Change the Gain Block parameter
to 2, exit and simulate the Scicos diagram
For that you should select Exit in
the Diagram menu. This closes
the corresponding window and activates the menus of main Scicos diagram.
You can now simulate the diagram using
Run
in the Simulate
menu.
Simulation result There is another way of constructing
a Super block.
Open an empty Scicos diagram and
copy in it a Super block
from Others palette
The Super block is empty in the
Others
palette
Open the Super
Block by clicking on it and fill in the inside
as follows Clicking
on a Super Block opens
a new Scicos window. The inside of the Super
Block can now be edited.
Note that Super Block ports must be numbered correctly
This Super Block will have two regular outputs and one activation
input ports.
Close the Super
Block by selecting Exit in the Diagram
menu You are then back to the original Scicos window
Note that the ports are adjusted automatically
Now the Super Block can be used like any other block. Connect its ports
to other blocks and Simulate!