0
0
Simulinkdata~10 mins

Simscape Power Systems overview 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 create a Simscape Power Systems model.

Simulink
model = simscape.[1]('PowerSystemModel');
Drag options to blanks, or click blank then click option'
APowerSystems
BPowerSystem
CElectricalSystem
DSimPower
Attempts:
3 left
💡 Hint
Common Mistakes
Using plural form 'PowerSystems' instead of 'PowerSystem'.
Confusing with 'ElectricalSystem' which is not a Simscape function.
2fill in blank
medium

Complete the code to add a voltage source block to the model.

Simulink
voltageSource = addBlock(model, '[1]');
Drag options to blanks, or click blank then click option'
AVoltageSource
BCurrentSource
CCapacitor
DResistor
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'CurrentSource' instead of 'VoltageSource'.
Selecting passive components like 'Resistor' or 'Capacitor'.
3fill in blank
hard

Fix the error in the code to connect two blocks in the model.

Simulink
connect([1], [2]);
Drag options to blanks, or click blank then click option'
AvoltageSource.load
Bload
CvoltageSource
Dload.load
Attempts:
3 left
💡 Hint
Common Mistakes
Using commas without specifying ports.
Not using dot notation for block ports.
4fill in blank
hard

Fill both blanks to create a load with resistance and connect it to the voltage source.

Simulink
load = addBlock(model, '[1]');
connect(voltageSource.[2], load);
Drag options to blanks, or click blank then click option'
AResistor
Bload
CloadPort
DCapacitor
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Capacitor' instead of 'Resistor' for the load.
Using incorrect port names like 'loadPort'.
5fill in blank
hard

Fill all three blanks to simulate the model and plot the voltage over time.

Simulink
simResult = simulate([1]);
voltageData = simResult.[2];
plot(voltageData.[3], voltageData.values);
Drag options to blanks, or click blank then click option'
Amodel
BVoltage
Ctime
DCurrent
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Current' instead of 'Voltage' for the signal.
Plotting against 'values' instead of 'time'.