This model shows a re-visit of the classic tetris game which has been shipping with Stateflow® to use some of the more modern programming paradigms and features. It shows the use of the
Use Stateflow® to model a bang-bang control system that regulates the temperature of a boiler. The boiler dynamics are modeled in Simulink® in a boiler plant model.
Model a home alarm system including motion sensors. Like in modern alarm systems, if the system detects an intrusion, it allows a certain (small) time for the alarm to be disabled, otherwise
This model shows a method for measuring the frequency response of a continuous time system (plant) using Stateflow®. It illustrates several features of Stateflow® such as the
This model shows a variation of the classic tic-tac-toe game with an interesting twist. Only the last three moves of each player count. Thus the user needs to also account for the order in which
How Mealy and Moore machines can be used in signal processing applications; in this case, for sequence recognition. In the Moore machine, actions can only be state actions, whereas in the
Use the truth table block to control the temperature and humidity using a climate control system. The truth table block defines two possible boolean variables, Hot and Dry. Stateflow® sets
This model shows how MATLAB®, Simulink®, and Stateflow® can be used together to create and edit graphical icons. On running the simulation, a drawing window will appear. You can then select
The difference between fixed-point and floating-point computation by displaying the result of computing the Mandelbrot set using each method in a figure window.
The simulation of a queueing system for a server processing tasks. There are four Stateflow® charts involved in the process: 1) The Source produces tasks that are weighted 1 to 5. Tasks take an
A simple model of a CD Player/Radio logic that uses enumerated data types in Simulink® and Stateflow® (new in R2008b).