Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/26/04 01:21
Read: times


 
#83868 - finite automa
Responding to: ???'s previous message
A good example is the control of a clothes washing machine.
each state continues until the condition to go to another state happens. The states do not have to be in order and the conditions do not have to be simple.

example

state 1 : fill
if full switch goto state 2
state 2 : wash
if time = 0 goto state 3
state 3 : spin
drain
if empty goto idle
if time = 0 goto idle

in C this can be do by calling a switch statement at a regular interval.



List of 5 messages in thread
TopicAuthorDate
State Machine ?            01/01/70 00:00      
   state machine            01/01/70 00:00      
      Question continued            01/01/70 00:00      
   finite automa            01/01/70 00:00      
      State machines            01/01/70 00:00      

Back to Subject List