Week - 4
Ques-1
sol-1
When power supply and water supply are not available system will be in the deactivated state:-

When the power supply is available but water supply is not available:-

When the power supply and water supply both are available system gets activated:-

The control logic of a “washing machine” using Stateflow

When the power supply is available but the water supply is not available:-
Ques-2
sol-2
Speed Range(kmph) Gear
0 to 15 1
16 to 25 2
26 to 40 3
41 to 60 4
Above 61 5
When speed is 0 , vehicle is in the stop state

Gear1- When vehicle speed range is 0-15

Gear2- When vehicle speed range is 16-25

Gear3- When vehicle speed range is 26-40

Gear4- When vehicle speed range is 41-60

Gear5- When the vehicle speed is above 61

Simulink chart for the “Gear shift” logic
