Tutorial
This tutorial provides an introduction into the
Modelica_StateGraph2 package (which is often abbreviated as StateGraph2).
A StateGraph2 model is a state diagram/state machine to model
discrete event, reactive and hybrid systems.
It is inspired by Grafcet/Sequential Function Charts (SFC), Statecharts,
Safe State Machines (SSM) and Mode Automata, and utilizes Modelica as action language.
This tutorial consists of the following sections:
- "Steps
    and Transitions" gives an overview about the most important
    elements: Steps and Transitions.
- "Parallel"
    gives an overview how to construct composite subgraphs and how run subgraphs in
    parallel, either autonoumsly or with synchronization.
- "Actions"
    gives an overview how to associate actions in a graphical way
    with Steps, Transitions and Parallel components.
- "Safe
    StateGraphs"
    discusses in which sense "StateGraph2" models
    are "safe".
- "Vectors
    of Connectors"
    sketches how connections to vectors of connectors (which are often used in the
    StateGraph2 library) are automatically handled in a convenient way.
- "Application Example"
    gives a more involved application example: The control of a two tank system.
Contents
Generated at 2025-10-30T19:21:05Z
 by OpenModelicaOpenModelica 1.25.5 using GenerateDoc.mos