Statechart Tools Examples

Zowi (C++)

This is a example of how to use the Default Domain together with the Zowi by BQ. C++ Timer are integrated

Read more >

Arduino - Bare-Metal Interrupts (C)

Embedded Systems Integration Guide - Arduino with @CycleBased or @EventDriven execution using Interrupts.

Read more >

Arduino - Bare-Metal Polling (C)

Embedded Systems Integration Guide - Arduino with @CycleBased or @EventDriven execution using Polling.

Read more >

Arduino - Digital Watch (C++)

This digital watch was first designed by David Harel, the founder of the Statecharts Theory. This example shows how to integrate it on an Arduino.

Read more >

Child-first vs. Parent-first Execution

This example demonstrates the two different execution semantics of composite states: child-first and parent-first execution.

Read more >

Digital Watch

This digital watch was first designed by David Harel, the founder of the Statecharts Theory. He described it in "On Visual Formalisms", published in "Communications of the ACM" in May 1988. A digital watch by that time had a display to show just a few digits. Using four control buttons, the user was able to toggle between displaying the time, displaying the date, using a stopwatch, maintaining an alarm, and setting time, date, and alarm.

Read more >

Event-driven vs. Cycle-based Execution

This example demonstrates the two different execution semantics of statecharts: event-driven and cycle-based execution.

Read more >

Hierarchical Statecharts

This example demonstrates the usage of hierarchies in statecharts. It explains the concepts of composite states and subdiagrams.

Read more >

History States

This example demonstrates the usage of history states and explains the difference between a shallow and a deep history.

Read more >

Orthogonal States

This example demonstrates the usage of orthogonal states as well as of forking and joining synchronization nodes.

Read more >

Basic Tutorial

This is a series of examples demonstrating multiple features of YAKINDU SCT. With each iteration, more features are shown. This example is a good starting point to dive into SCT headfirst.

Read more >

C Code Generation

This example demonstrates how to generate C code from a statechart.

Read more >

C++ Code Generation

This example demonstrates how to generate C++ code from a statechart.

Read more >

Java Code Generation

This example demonstrates how to generate Java code from a statechart.

Read more >

Arduino - HMI with LCD Keypad Shield (C++)

Expandable HMI example for Arduino using a 16x2 LCD Keypad Shield

Read more >

Arduino - Traffic Light (C++)

Wondering how to execute your state machine on the Arduino platform? This example demonstrates the necessary steps, like installing the Arduino plugin, building the hardware, turning your statechart into code and uploading it to the Arduino. It does so by means of the standard traffic light example.

Read more >

RKH/STM32 - Blinky LED (C)

Blinking a LED on STM32Discovery Board by using YAKINDU Statechart Tools and RKH Generator

Read more >

RKH/Linux - Blinky LED (C)

Blinking a LED on Linux by using YAKINDU Statechart Tools and RKH Generator

Read more >

Music Player (Deep Java)

A JavaFX based music player controlled by a statemachine with deep Java integration

Read more >

Traffic Light (Qt/C++)

YAKINDU provides a Qt specific C++ code generator for statecharts. This example project shows how easy YAKINDU Qt/C++ state machines can be integrated into Qt applications.

Read more >

Zowi (Deep C++)

This is a example of how to use the C/C++ Domain together with the Zowi by BQ. C++ Timer are integrated

Read more >

Coffee Machine with multiple statecharts (Deep C)

This is a comprehensive example for using multiple state machines using the deep C integration of YAKINDU statecharts. The example is implemented as a simple command line tool.

Read more >

Arduino - Blinky LED (Deep C++)

This is a simple example of how to use the C/C++ Domain together with an Arduino. C++ Timer are integrated

Read more >

Traffic Light (Java) with SCTUnit

Demonstrates how to use SCTUnit by using the Traffic Light model.

Read more >

Custom Generator Example for SCXML

Explains how to develop your own code generator. A custom code generator is one that is not shipped with YAKINDU Statechart Tools, but developed by the user himself for his own specific purposes. This example takes a simple stopwatch state machine and generates Statechart XML (SCXML) from it.

Read more >

Coffee Machine (Deep C)

This is a comprehensive example for the deep integration of YAKINDU statecharts with manually written C code. The example is implemented as a simple command line tool.

Read more >

Code Generation with Ant

Integrate the headless statechart generator into your Apache Ant build process.

Read more >

Code Generation with Gradle

Use the powerful build infrastructure of Gradle to invoke the headless statechart generator to improve your build workflow.

Read more >

Code Generation with Make

While many people fear Makefiles, they are not as complicated as everyone believes. Integrating the command line statechart builder into your Make-driven build is as easy as it can get.

Read more >

Code Generation with Maven

Probably the majority of all Java projects in the world is built by Apache Maven, and with the new headless code generator of the YAKINDU statechart tools, Maven now builds your statecharts as well.

Read more >

Raspberry Pi - Hello World (C)

This example shows how to use a statechart and some C code to control a RGB LED attached to the Raspberry Pi.

Read more >

Coffee Machine (Deep C++)

This is a comprehensive example for the deep C++ integration of YAKINDU statecharts.

Read more >

MSP430 - Blinky LED (Deep C)

Blinking LED on MSP430G2553 by using TIs Code Composer Studio and YAKINDU Statechart Tools as a plugin

Read more >

Autonomous Robot (Deep C)

A small example of a robot that drives around, detects obstacles and avoids them. Demonstrates arrays and pointers with Deep C Integration.

Read more >

Arduino - Basic Finite State Machine (C)

A very basic state machine example for the Arduino platform that switches an LED on and off. It demonstrates how to get started with YAKINDU Statechart Tools and the Arduino platform and contains a timer service for the Arduino. You need to have an Arduino plugin, as described in the "Traffic Light Ported to Arduino" example.

Read more >

Elevator with SCTUnit

This video tutorial is presented by Prof. Tom Mens (Software Engineering Lab, University of Mons). It provides a hands-on demonstration, on the basis of a simulation of an elevator statechart, on how to write and run unit tests for statecharts with Yakindu Statechart Tools.

Read more >

MSP430 - Blinky LED (C)

Blinking LED on MSP430G2553 by using TIs Code Composer Studio and Yakindu Statechart Tools as a plugin

Read more >

Showcase (Swift)

Demonstrates how to to generate Swift source code from a statechart.

Read more >

Arduino - Traffic Light (C)

Wondering how to execute your state machine on the Arduino platform? This example demonstrates the necessary steps, like installing the Arduino plugin, building the hardware, turning your statechart into code and uploading it to the Arduino. It does so by means of the standard traffic light example.

Read more >

Traffic Light (Java)

Demonstrates how to to generate Java source code from a statechart. The procedure is actually explained in the YAKINDU Statechart Tools documentation, section "Java code generator".

Read more >

Traffic Light (Python)

Demonstrates how to generate Python source code from a statechart.

Read more >

Raspberry Pi - Traffic Light (Python)

Demonstrates how to generate Python source code from a statechart.

Read more >

Traffic Light (SCXML) for QT

This traffic light is inspired by the Qt examples. It provides a simple traffic light that consists of the main states red, yellow and green. It demonstrates how to connect to the active properties of a state in a dynamically loaded statemachine within YAKINDU Statechart Tools and the Qt environment.

Read more >

Webbased Car HMI (TypeScript)

This example demonstrates how a state machine can be generated as typescript artifact and how to integrate this into an angular 4 application.

Read more >