0
0
Simulinkdata~10 mins

AC source and load modeling 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 define an AC voltage source with amplitude 230V.

Simulink
ac_source = Simulink.Signal;
ac_source.Value = [1];
Drag options to blanks, or click blank then click option'
A50
B400
C110
D230
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing frequency with amplitude.
Using RMS value instead of peak amplitude.
2fill in blank
medium

Complete the code to set the frequency of the AC source to 50 Hz.

Simulink
ac_source.Frequency = [1];
Drag options to blanks, or click blank then click option'
A60
B100
C50
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using amplitude value instead of frequency.
Setting frequency to zero which means DC.
3fill in blank
hard

Fix the error in the code to correctly model a resistive load of 10 ohms.

Simulink
load_resistance = [1];
Drag options to blanks, or click blank then click option'
A10
B'10'
C10.0
Dload_resistance
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around numbers making them strings.
Assigning variable to itself causing undefined error.
4fill in blank
hard

Fill both blanks to create a dictionary mapping load types to their values.

Simulink
loads = { 'resistive': [1], 'inductive': [2] }
Drag options to blanks, or click blank then click option'
A10
B5
C15
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up load values.
Using strings instead of numbers.
5fill in blank
hard

Fill all three blanks to create a dictionary with load types and their power factors.

Simulink
load_pf = { 'resistive': [1], 'inductive': [2], 'capacitive': [3] }
Drag options to blanks, or click blank then click option'
A1.0
B0.8
C0.9
D0.95
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning incorrect power factor values.
Using values outside the 0 to 1 range.