Challenge

Week - 4

Ans1: First we have to create chart for "washing machine” using Stateflow as per given sequence

  • Our first block is taken as a powerOn, so as per conditions if power supply is avilable i.e.constant>1 then signal pass through next block otherwise it'll not proceed.
  • After that the second conditions we have to implement i.e If the Water supply is not available, stop the process & indicate through LED (Waterinput=1).
  • If water supply is avilable it'll proceed forward tp next block which is soaking, then after 200sec it will pass on to washing block.
  • After washing for100sec it'll goto rinsing state, Then rinsing happens for next 20s & dryer runs for 50s and process is done.
  • We have to declare state input or output data by using symbol panel.
  • Here input data is power, water and output data is poweron, soaking, washing, rinsing, drying & finish.
  • All state can be seen with the blue lights ON

Ans2:Here i've assigned the following speed given to every specific gear e.g. for gear 1 it is 0 to 15, if it goes beyond 15 the block will be shifted to gear 2 and so on

At input I've connected slider gain and display at output

after running the model for infinite time we can see the real time output by adjusting the slider gain.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.