Week - 4
Q.1
With the help Stateflow, washing machine logic has been implemented successfully.
power_supply = input data
water_supply = input data
W, S, R, F, D, power, water = output data

Stateflow model:

Simulink Model:

Result: The required outputs were turned ON after the processes have completed.
Q.2 -
Speed = input data
Gear = output data

Stateflow model:

Simulink Model:


Result: With the help of Slider gain, the speed input is given the stateflow and obtained the required output.