Preview

2.8 Sample Of The Finite State Machine

Satisfactory Essays
Open Document
Open Document
756 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
2.8 Sample Of The Finite State Machine
2.8 EXAMPLE OF THE FINITE STATE MACHINE
Step 1: Describe the machine in words. In this example, we’ll be designing a controller for an elevator. The elevator can be at one of two floors: Ground or First. There is one button that controls the elevator, and it has two values: Up or Down. Also, there are two lights in the elevator that indicate the current floor: Red for Ground, and Green for First. At each time step, the controller checks the current floor and current input, changes floors and lights in the obvious way.
Step 2: Draw the FSM diagram
• Up
• Ground
• [Red on, Green off]
• First
• [Red off, Green on]
• Down Up
• Down

In this diagram, the bubbles represent the states, and the arrows represent state transitions. The arrow labels indicate the input value corresponding to the transition. For instance, when the elevator is in the Ground state, and the input is Up, the next state is First. The information in
…show more content…
• An intimate relationship with directed graphs having arcs labeled with
• symbols from the input alphabet. Finite State Machine.

Finite state machines represent a very powerful way of describing and implementing the control logic for applications. I have used them to implement communication protocols, to control the interactions in a GUI, and many many other applications. FSMs are powerful because they are a very dense representation. A lot of logic can be represented by a relatively small diagram. They are powerful because they follow very simple rules, and are easy to verify. And they are powerful because they can be used to generate code. There is one button that controls the elevator, and it has two values: Up or Down. Also, there are two lights in the elevator that indicate the current floor: Red for Ground, and Green for First. At each time step, the controller checks the current floor and current input, changes floors and lights in the obvious

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1210 Unit 5 Questions

    • 821 Words
    • 3 Pages

    through the switches on the first floor as part of the journey. Which of the following statements…

    • 821 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ECT114 week 3 lab

    • 299 Words
    • 2 Pages

    3. Analyze the switch logic circuit in Figure 1. The light ON is considered a logic HIGH, and the light OFF is considered a logic LOW.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    M4 Study Guide

    • 1238 Words
    • 5 Pages

    If the aircraft's nose remains in the new position after the elevator control is pressed forward and released, the aircraft displays…

    • 1238 Words
    • 5 Pages
    Good Essays
  • Good Essays

    elevator and it announcing the direction in which it was going. This was obviously added…

    • 1206 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Week 1 Quiz

    • 988 Words
    • 9 Pages

    Which of the following structures of a feedback system sends input to the control center?…

    • 988 Words
    • 9 Pages
    Satisfactory Essays
  • Good Essays

    After they purchased the business of Airtex Aviation, Frank and Ted implemented a control system across the whole company. I would like to discuss both action controls and personnel controls in the system.…

    • 780 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Solution: A Control system has four control steps i.e. Setting performance standards, Measuring performance, Comparing performance against the standards and determining deviations, Taking action to correct problems and reinforce successes.…

    • 250 Words
    • 1 Page
    Good Essays
  • Good Essays

    mgmt final

    • 1301 Words
    • 6 Pages

    6. (TCO 10) What are the different levels of control? What are the relationships between the different levels?…

    • 1301 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    The Bellagio Casino Resort (BCR) is one of the 23 properties of MGM MIRAGE and widely recognized as one of the premier casino resorts in the world. Beside entertainments options like an expansive pool and a world-class spa there is a large casino area which contains 2,409 coin-operated gaming devices and 143 game tables. Just as in most companies in this industry the casino area is leaded as a separated profit centre (Merchant, Van der Stede, 2007, P.153-155) In this case we’ll discuss the control systems used in the BCR.…

    • 1556 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Introductory Study

    • 999 Words
    • 4 Pages

    transitions between states, and calculate and interpret the probability of being in a particular state and…

    • 999 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    P1 - Identify the key features of event driven programming such as events, event loops and event handlers…

    • 1240 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Logic Models

    • 1480 Words
    • 6 Pages

    Logic models are typically diagrams, flow sheets, or some other type of visual schematic that conveys relationships between contextual factors and programmatic inputs, processes, and outcomes. Logic models can come in all shapes and sizes: boxes with connecting lines that are read from left to right (or top to bottom); circular loops with arrows going in or out; or other visual metaphors and devices. What these schemata have in common are they attempt to show the links in a chain of reasoning about "what causes what," in relationship to the desired outcome or goal. The desired outcome or goal is usually shown as the last link in the model.…

    • 1480 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    Controlled: To control variables we can change hot coffee/water and milk every minute, or put hot coffee/ water into thermos and milk into object that has same temperature.…

    • 1449 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Manchester Encoding: The normal binary logics of one and zero are no more used to send data from one station to other station. The reason of not using plain binary signal is they cause ambiguities resulting in false interpretation of sent data. The major culprit is zero, where even no data is sent the receiver can assume it as zero.…

    • 473 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    The diagram below shows one of the changes of physical state. Which change of state is…

    • 1888 Words
    • 8 Pages
    Powerful Essays