E4Coder and SMCube - Creation and Simulation of a Finite State Machine from Scratch

Опубликовано: 01 Май 2026
на канале: Paolo Gai
2,211
4

http://www.e4coder.com
(NOTE: long video - chapters below)

This video shows the creation from scratch of a simple Finite State Machine diagram using the E4Coder Code generator and in particular the SMCube Finite State Machine Simulator and Editor. The video shows the creation of the diagram, the creation of a simple state machine implementing a Triangle Wave Generator, and the simulation of the diagram to show the results.

Chapters
---------------------------------------------------
00:10 Introduction
00:40 Starting scicosLab
01:55 Creating the SMCube Block
03:32 Starting SMCube
03:55 Designing the states of the Triangle wave
04:26 Inserting the states in the SMCube Diagram
04:58 the SMCube Data Model
05:30 Editing the SMCube Data Model for the Triangle Wave State Machine
06:05 While Actions
06:18 Editing the While Actions
06:47 Transactions
07:09 Adding Transactions to the diagram
07:40 Editing the Transaction actions and guards
08:38 The initial State
09:11 Adding the Initial State
09:53 Compiling the diagram to check the correctness of the actions and guards
10:35 Adding additional blocks to complete the diagram
10:56 Adding a Constant block
11:28 Adding a Scope
12:08 Adding the Clock
12:25 Adding the Type Conversion Blocks
12:54 Connecting the Blocks
13:22 Simulating the Triangle wave State Machine
13:43 Editing the Simulation parameters
14:00 Running the simulation
14:35 Conclusions and Contacts