Engee documentation

Chart

Realisation of control logic using a finite automaton.

blockType: Chart

Path in the library:

/StateMachines/Chart

Description

The block Chart is a graphical representation of a finite automaton. A finite automaton is a mathematical model of a device that describes a system with a finite number of states.

To start working with the block Chart, place it on the Engee workspace and double-click on it.

Inside Chart the block library changes its view:

stateflow library

Read about states, nodes, transitions and memory nodes in the article State machines.

The interface of the Chart block is unified with the interface for working with subsystems, so to exit from it back to the Engee workspace, use the sf hierarchy 2 hierarchy navigation tab on the model panel or the Esc key:

sf hierarchy 1 1

Ports

Input

Port_in - an input signal that creates an input port
scalar

Input signal as an internal variable of the block Chart, corresponding to the input port of the block. Appears after creating the input internal variable of the menu of adding signals in the settings window of the finite automaton model stateflow settings icon:

stateflow settings 3 1 1

The input port cannot be assigned an initial value.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Fixed

Output

Port_out - an output signal that creates an output port
scalar

Output signal as an internal variable of the block Chart, corresponding to the output port of the block. Appears after creating the output internal variable in the menu of adding signals in the settings window of the finite automaton model stateflow settings icon:

sf 1 2 3

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Fixed

The Chart block is an isolated part of Engee, so variables from workspace are not available in it.

To make them visible, open settings window debug article icon 1 of the Chart block and add a signal by selecting Parameters:

ka variable add

The name of the parameters must match the name of the variable in the workspace. You can view active variables in variable window variables article 2 1.

If the block Chart is inside the masked subsystem, the mask parameters can also be passed inside it. Read more about creating such subsystems in the article Masks at Engee.

Additional options

C code generation: Yes