Week - 4
Control logic washing machine:-
The model is made based on conditions where the value equaling 1 or 0.
thus we give two conditions to be followed. i.e., the water suply be on and the power should be on.
if either one is not true then the loop is not executed.
soo if both switches are on then the cycle starts . according to the condition, at the given time intervels the particular command is exectted.
This can be made more complex using the water temperature conditions and the rince and varying automatic cycles.
Control logic for Gear:
similar to the washing machine logic, the conditions are created where speed is the main parameter.
according to the conditions of speed, the gear is exected .
a slider bare is given to represent the lenier accleration.
then the speed is displayed on the speedo meter and the gear number is displayed in the display .
using simulation pacing we can increase the run time and display the outputs dynamically as the simulation is happening.