Simulating Event-Driven Systems

A state chart is a graphical representation of a finite-state machine; that is, a system with a defined number of states, where transition from one state to another occurs when certain conditions are met. An example of a simple state chart is shown below:

statechart example tst

You can create state charts anywhere within block diagram, and you can easily exchange data between the state chart and the continuous portion of the diagram.  In addition, you can interactively simulate the state chart diagram or generate code to be run on an embedded target.

The continuous portion of the block diagram can control state chart execution with triggers.