Sinelabore Homepage

Cadifra Video Tutorial#

Part I#

This video shows how easy it is to use the SinelaboreRT code generator with the Cadifra UML editor. A small state diagram is created and then converted into C code using the code generator.

All development steps are shown.

A basic main.c is then used to send events to the state machine and execute it.

To follow the tutorial, download the demo version of SinelaboreRT and the Cadifra UML Editor from the download page. A C compiler (for example gcc) is also needed to compile the generated C code.

(5:17 min)

Part II#

In the second part of the tutorial, the first example is extended. S1 is changed into a composite state (a state with children). Two child states and several transitions are added.

(5:40 min)

Then state machine C code is generated again using the code generator. In the next step, main.c is extended to send one of the new events to the machine.

Finally, testcase generation from the state diagram is shown. The automatically generated test cases provide a good basis for testing the state diagram.

Cadifra is a fast and lightweight UML diagram editor for Windows. It supports Class, Object, Sequence, State, and Use Case diagrams. Each diagram is stored in its own file. The SinelaboreRT code generator directly uses the state diagram model file. The editor is especially well suited for designs with few hierarchy levels.