SPLat embedded OEM controllers home

Finite State Machines - Make light work of complex functions

State Machines are not difficult! - An FSM tutorial

By David Stonier-Gibson, SPLat Controls   

Do you need an easy way make your programs respond to events or user actions in ways that can vary depending on past events, or history? Enable Javascript to see the pop-up Maybe you are programming one of the following:
 
  • Machine controllersEnable Javascript to see the pop-up
  • Robotics
  • Games programsEnable Javascript to see the pop-up
  • Transaction processingEnable Javascript to see the pop-up
  • Communications protocols
  • Puzzle solversEnable Javascript to see the pop-up
The Finite State Machine (FSM for short, sometimes called Finite State Automaton) is a programming technique that can handle such situations very easily. The most complicated aspect of finite state machines is the name itself.Enable Javascript to see the pop-up.
 
The way I am going to do this is first of all to introduce you to a diagram that describes a finite state machine. That is in many ways the most important part, because it gives you a very powerful design tool. Then I will show you how to translate a State Diagram into program code. About 20 minutes from now you will have a powerful new tool in your programming arsenal.
                Next >

Who are SPLat?


If you (or your clients) make products that could benefit from a smart electronic controller, then we may be just who you need to give you a competitive advantage. We specialize in "deeply embedded electronic controls" for Original Equipment Manufacturers.
 
Our controllers are extremely easy to program, with special features to support FSMs and multitasking. We have a range of Rapid Prototyping models, and we do custom designs with amazingly quick NRE recovery.
 

Main website        Contact us
Home
Copyright © 2010 SPLat Controls Pty Ltd