SinelaboreRT Header Logo

SinelaboreRT

As simple as possible, but not any simpler!

User Tools

Site Tools


wiki:landing_pages:cadifra

Cadifra Video Tutorial

Part I

In this video we show how easy it is to use the sinelaboreRT code generator in combination with the Cadifra UML editor. We create a small state diagram. The diagram is then converted into C-code using the code generator. All development steps are shown.

Then a basic main.c file is used to send events to the state machine and execute it.

To follow the tutorial on your own download the demo version of sinelaboreRT and the Cadifra UML Editor from the download page. A C-compiler is needed (e.g. gcc) too to compile the C-code.

(5:17min)

Part II

In the second part of the video tutorial we extend the first example. S1 is changed into a composite state (i.e. a state with children). Two child states and several transitions are added too.

(5:40min)

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

Finally it is shown how to generate testcases from the state diagram. 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 the following kinds of UML diagrams: Class, Object, Sequence, State and Use Case. Each diagram is stored in an own file. The SinelaboreRT codegen directly uses the state diagram model file. The state diagram editor is very good for designs with few hierarchy levels.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
wiki/landing_pages/cadifra.txt · Last modified: 2023/02/09 19:37 by webmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki