Challenge

Week - 4

ANS 1:

Implement control logic of a “washing machine” using Stateflow as per given sequence:

REQUIREMENTS-- CHART,DISPLAY,LAMP,CONSTANTS

STEPS 1. go to matlab,open blank simulink model and save the file

2.in the blank model select chart ,double click on the chart and we will be directed inside it.

3.inside chart select the state and desin has been attached.

4.once the states are being created and conditions are being provided,we need to define input and output data via symbols pane option.

5.again go back to chart and connect the output ports with displays and lamp.

6.connect constants and lamp to the input port.

7.give the time constants to check the working of the washing machine.

THE SCREEN SHOTS ARE PROVIDED BY VARYING THE SIMULATION TIME IN ORDER TO CHECK THE WORKING OF EACH STATE OF WASHING MACHINE.

ANS2:

Simulink chart for the “Gear shift” logic:

REQUIREMENTS-- CHART,DISPLAY,LAMP,CONSTANTS,SLIDER GAIN

STEPS 1. go to matlab,open blank simulink model and save the file

2.in the blank model select chart ,double click on the chart and we will be directed inside it.

3.inside chart select the state and design has been attached.

4.once the states are being created and conditions are being provided,we need to define input and output data via symbols pane option.

5.again go back to chart and connect the output ports with displays and lamp.

6.for varying the speed a slider gain has been attached and the speed limit of the slider gain has been set.

THE SCREEN SHOTS ARE PROVIDED BY VARYING THE SPEED VIA SLIDER GAIN IN ORDER TO CHECK THE WORKING OF EACH GEAR.

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.