Home / Expert Answers / Electrical Engineering / the-stateflow-diagram-shown-in-figure-1-describes-the-operation-of-a-coffee-machine-wait-entry-g-pa269

(Solved): The Stateflow diagram shown in Figure 1 describes the operation of a coffee machine. Wait entry: g ...



The Stateflow diagram shown in Figure 1 describes the operation of a coffee machine.
Wait
entry:
grinder = 0;
extract = 0;
[c

The Stateflow diagram shown in Figure 1 describes the operation of a coffee machine. Wait entry: grinder = 0; extract = 0; [coffee_button == 0] [after(6, sec)] Grind_Coffee entry: grinder = 1; exit: grinder = 0; Dispense_Coffee entry: extract = 1; exit: extract = 0; Figure 1: A finite state machine diagram of a coffee machine The coffee machine should behave in the following way: • Machine starts up in the Wait state (Default transition). • In the Wait state it waits for the coffee button to be pressed. No other state actions are on in this state. • If the coffee button is pressed (TRUE) the machine enters the Grind Coffee state. In this state the coffee grinder state action is activated • After 4 seconds in the Grind Coffee state the grinder will stop and the machine will move to the final state, the Dispense Coffee state. • In the Dispense Coffee state the machine will activate the extract state action. • After 6 seconds in the Dispense Coffee state the extractor will stop and the machine will finally go back into the Wait state. It's discovered this coffee state machine does not work as intended, from the options below select where the problem lies. Error in state actions in Wait state Error in state actions in Grind_Coffee state Error in state actions in Dispense_Coffee state Error in transition conditions between the Wait and Grind_Coffee states O [after(4, sec)]


We have an Answer from Expert

View Expert Answer

Expert Answer


Solution:_ Correct option is d It's option D .. ther
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe