Student Notes · 2 Hours · Simulink Onramp Modules 7–9
Session 07 introduces subsystems — the mechanism that lets Simulink models scale from 5 blocks to 500 blocks while remaining readable. You will create subsystems, name their ports, and navigate a 2-level hierarchy.
The session culminates in a design exercise: sketch a 3-subsystem BEV hierarchy on paper, then build it in Onramp.
A subsystem is a block that contains other blocks. From the outside it looks like any block — named input ports on the left, output ports on the right. On the inside it contains a sub-model.
A battery pack has a positive and negative terminal — you don't see the cells, BMS, or thermal management from outside. A Simulink subsystem works identically: visible ports only, hidden internals.
Drag a selection rectangle around only the blocks to go inside. Do not include source blocks (Constant) or sink blocks (Display/Scope) that should remain at Level 1.
Simulink wraps the selected blocks into a new subsystem block. It automatically adds Inport and Outport blocks at the signal boundaries.
Click the label under the subsystem block on the canvas. Replace the default name with a meaningful one: RPM_to_RadPerSec.
After creating a subsystem, double-click it to open the interior. You will find Inport and Outport blocks at the boundaries. Renaming these is not optional in professional models.
Default name: In1 — rename to the signal name, e.g. rpm_in. The name appears on the subsystem block face on the parent canvas.
Default name: Out1 — rename to e.g. rads_out. Anyone opening the model immediately knows what signal the subsystem produces.
rpm_in and rads_out tells the next engineer exactly what it does without opening it. A subsystem with ports named In1 and Out1 tells them nothing. In professional Simulink models, unnamed ports are a code quality violation.In Onramp, build Constant (300) → Gain (0.1047) → Display. Select the Gain block only → Right-click → Create Subsystem. Enter the subsystem. Rename Inport to rpm_in, Outport to rads_out. Exit. Rename the subsystem block to RPM_to_RadPerSec. Run — verify Display still ≈ 31.4.
On paper, design a 3-subsystem BEV model: Battery Pack, Electric Motor, Vehicle Dynamics. For each subsystem, list at least 2 internal blocks you would expect inside. Draw signal flow arrows between subsystems and label each arrow with the signal name and units.
rpm_in, rads_out) — never leave default names like In1.You have now built subsystems and designed a BEV hierarchy. Session 08 is the final session — you complete the Simulink Onramp, earn the MathWorks certificate, and synthesise all four sessions into an EV reference table.
Ensure you have completed Modules 7–9 before Session 08. The certificate assessment covers all content from Modules 1–11.