State Diagram

What are the two variables in a state diagram?
The two variables in a state diagram are:

  1. The one which changes the state.
  2. The one which represents the output of the state.
Example of a state diagram for a radio with three available channels

Radio State Diagram.png

A more generalized state machine