Week - 4
Challenge1:
In CHART:(state flow diagram attached as picture)<br>
when Power supply and water supply both active then the further stage of washing like:wash,soak,rinse,dry then LED2 glow will continue with specific time delay.<br>
when Power supply on but water supply inactive,the LED1 of no water supply will glow.<br>
PS,WS: two input port.<br>
dry,rinse,soak,wash,LED1,LED2:output port.<br>
Problem faced:in charge if condition between state is mentioned in curl bracket,then the condition get shadow and irrespective of any condition loop will further continue.<br>
Solution:So condition should be mention in 3rd barcket.Two signal builder block is used as PS,WS.Ater 400 sec again process of washing started as attached picture.<br>
problem faced:<br>
1)after 370sec,all stage should be completed,but all stge is completd at 390 sec.when LED2 glows.<br>
2)another problem,at 395sec,LED2 stops means all stage not completed.but aother stages(wash ,soak,rinse,dry) are active.seems like response gets slow.<br>
solution:not able to get any solution.picture is attached as"problem(wahing machine)".<br>
Challenge 2:<br>
slider gain used to change speed during program running.<br>
speed gauge is used to show the current speed.<br>
Chart:<br>
S_R(speed range)>=0<br>
at the entry gear will be 1 and at the exit gear will change to 2 upto speed 15km/hr.<br>
S_R(speed range)>=16<br>
then the entry gear will be 2 and at the exit gear will change to 3 upto speed 25 km/hr.<br>
S_R(speed range)>=26<br>
then the entry gear will be 3 and at the exit gear will change to 4 upto speed 40 km/hr.<br>
S_R(speed range)>=41<br>
then the entry gear will be 4 and at the exit gear will change to 5 upto speed 60 km/hr.<br>
S_R(speed range)>=61<br>
then the entry gear will be 4 at speed above 61km/hr.<br>
when speed become below 61km/hr,again return to initial state.<br>
All the the output,prgram and stste flow chart is mention is attched picture.<br>