Week - 4
AIM: To impliment control logic of a washing machine using stateflow in simulink
PICTORIAL REPRESENTATION OF BLOCK DIAGRAM

CHART DIAGRAM:

PARAMETERS:

We have given water, soak,washing,rinsing,dryer,cycle as outputs of the chart
we have given our warer_supplay&power_supplay as inputs of the chart
simulation time = 460
we use 460 sec so that it can cover the whole cycle and sufficient time to store and solve the parameter
OUTPUT:
condition-1: when water supply is off
we should not provide water supplay and check for output

from the above diagram we can see that indicator of water is showing red .when there is no water supply the process is terminated and LED indicator is used to indicate that state
condition-2: when water supply is ON
Now providing the water supply and check the output

As we can observe from the above figure, all the state have been executed and indicating the process completion indicator showing green
CONCLUTION:
The simulation of the washing machine using state flow is done and the result is satisfactory
TASK-2:
AIM: To make a simulink chart for the gear shift logic
BLOCK DIAGRAM OF MODEL:

CHART DIAGRAM:

PARAMETER:

Here we give speed as an input for the chart and gear as an output
SIMULATION TIME PARAMETER:

Here we gave time as 'inf' for our simulation should run until we stop it
INPUT:
We use slider gain to provide input to the chart

i'm changing my speed values from 0 to 100 using slider gain during the simulation
OUTPUT:
The output produced is recorded whhen it's displaying the each gear
GEAR-1:
Speed range:0 to 15kmph.
input speed:10kmph
color :Green

GEAR-2:
speed range:16 to 25kmph.
input speed:20kmph.
color :Blue

GEAR-3:
Speed range:26 to 40kmph.
input speed:30kmph.
color :light blue

GEAR-4:
speed range:41 to 60kmph.
input speed:50kmph.
color :orange

GEAR-5:
speed range:above 60kmph.
input speed:80kmph.
color :Red

CONCLUSION:
Created a state flow for gear shift using simulink and the result are satisfactory