Week - 4
Task - 1
The model is attached :

Lamp Setting :

Rocker Switch Configuration:

A Rocker switch from the dashboard library is used with a constant to supply the power and as water supply. A lamp is used to indicate the power status & water status. The power status is checked at the entry for every state and the water supply is checked for the soaking and the rinsing process. The timing for each state is as per the given inputs. The status of the running process can be seen by the glowing lamp corresponding to the process name
The logic with symobols :

control logic first state is created with 2 conditions for power supply . One is with power supply available(PowerSwitch==1)and second with water supply available (W==1).If the power supply at entry is 1 and water supply is on, then machine will get activated and start the next process of operation. Next 4 Operation states have been created in flow order Soaking,Washing,Rinsing,Drying with their time of operation as 200sec for a soak,100sec for wash,20
sec for rinse & 50sec for dry.Entry and exit condition of the state are kept as 0 & i.e at entry of operation states it is 0 and as operation completes it is 1 for every states.After all process has done washing machine completed LED will glow and we can shut the machine off.
Task -2:
The model is :

The block diagram :

The speed ranges from 0 to 100 and the slider is used to send the input. The 1st gear has speed values from 0 to 15 so the entry condition for the 1st gear is 0<=speed and speed<=15 and the exit condition is when the speed greater than 15. Similarly for 2nd gear, the entry condition is 16<=speed and speed<=25 the exit condition is when speed<16 and speed>25. In the same way for each gear, the entry and the exit condition are specified and the out is mapped to the lamp and the display block.
Slider Configuration :

At less than 15

At 20 kmph speed

At 30 kmph speed

At 50 kmph speed

At 70 kmph speed

Gears are shifted as per speed