0
0
Simulinkdata~10 mins

Motor startup and braking simulation in Simulink - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the motor speed to start from zero.

Simulink
motor_speed = [1]
Drag options to blanks, or click blank then click option'
A1
B100
C0
D-1
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the initial speed to a non-zero value.
Using a negative speed at startup.
2fill in blank
medium

Complete the code to apply braking torque to the motor.

Simulink
braking_torque = [1]
Drag options to blanks, or click blank then click option'
A100
B-10
C10
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using positive torque for braking.
Setting braking torque to zero.
3fill in blank
hard

Fix the error in the code to correctly calculate motor acceleration.

Simulink
acceleration = (torque [1] load_torque) / inertia
Drag options to blanks, or click blank then click option'
A-
B*
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Adding torques instead of subtracting.
Multiplying torques incorrectly.
4fill in blank
hard

Fill both blanks to create a dictionary of motor states with speed and torque.

Simulink
motor_states = {'speed': [1], 'torque': [2]
Drag options to blanks, or click blank then click option'
Amotor_speed
Bbraking_torque
Cacceleration
Dload_torque
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing acceleration with speed.
Using load torque instead of braking torque.
5fill in blank
hard

Fill all three blanks to compute the motor speed after braking over a time step.

Simulink
motor_speed = motor_speed [1] acceleration [2] time_step [3] braking_effect
Drag options to blanks, or click blank then click option'
A+
B*
C-
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using division instead of multiplication for time step.
Adding braking effect instead of subtracting.