Statechart Tools Examples

STM32F407 Discovery - Blinky LED (Deep C)

This is a simple example of how to use the C domain together with an STM32F407 Discovery board. C timers are integrated.

Read more >

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 >

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 >

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 >

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 >

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 >

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 >

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 (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 >