Chart
Realisation of control logic using a finite automaton.
blockType: Chart
Path in the library:
|
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:
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 hierarchy navigation tab on the model panel or the Esc key:
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 :
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 :
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 The name of the parameters must match the name of the variable in the workspace. You can view active variables in variable window 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. |
Examples
-
Code generation for STM32 (Button and flashing LED on finite automata)
-
Code generation for Arduino (Flashing LED on finite automata)
-
Modelling of pipeline pressure control using a fuzzy controller
-
Code generation for Arduino (Traffic lights on finite automata)
-
Defining diagram behaviour using state actions and transition labels