The Schematic Editor (Tutorial)

This section explains step-by-step how to create a schematic that models the counter.

Create a new project file

It is not strictly necessary to create a project file, but it is recommended to start the project by saving an empty project file in order to settle the project path.

Create a new schematic

Add blocks

A schematic consists of blocks and connections. The blocks represent the functions to be computed, and the connections, shown as simple lines between the blocks, represent the signals that flow between these functions. There are also port blocks to represent input and output signals. Blocks are added to the schematic by dragging them from the blocks tree, on the Blocks tab in the left part of the window, into the schematic area.

Rename the inputs and outputs

RTflow gives input and output blocks default names like BoolInput1 and IntOutput1. These can be changed by clicking on the name.

In general, text that appears in green color in the schematic can be edited by clicking it. Editing can be aborted by pressing the Esc key. For details, see the Renaming an Element section.

Add connections

Connections are created by clicking once on the small line representing the output port of the source block and then once on the input port of the destination block.

RTflow does not allow open-ended connections. This means that clicking anywhere else than on a destination port when a connection has been started (as after the first step above) will cancel the connection. It also means that if a block is deleted, all connections to and from the deleted block will also be deleted automatically. For details, see the Adding a Connection section.

Finalize the schematic

Complete the schematic with the blocks and connections as shown in the screenshot above. The box with a single number in it is the Value block in the Arithmetic folder. The value in it can be edited by clicking it, just as with input and output names. The Add block is likewise in the Arithmetic folder, and the Pre block can be found in the Dynamic folder.