Student Notes · 2 Hours · Simulink Onramp Modules 4–6
Session 06 deepens your Simulink practice. You can now place and connect blocks — this session teaches you to read what your model is telling you (Scope), understand what every parameter means physically, and control how long a simulation runs.
The central build today is the RPM-to-rad/s Gain model — a real motor controller conversion you will extend into a subsystem in Session 07.
Every block parameter is a real engineering value. It should be traceable to a datasheet or engineering standard.
| Block | Parameter | Real EV equivalent | Example |
|---|---|---|---|
| Gain | Gain value | RPM → rad/s unit conversion | 0.1047 (= 2π/60) |
| Gain | Gain value | Motor torque constant Kt (N·m/A) | 0.85 |
| Sine Wave | Amplitude | Peak AC phase voltage | 325 V (= 230 × √2) |
| Sine Wave | Frequency | Inverter output frequency | 50 Hz |
| Constant | Value | Fixed motor speed operating point | 300 RPM |
| Stop Time | Simulation time | Drive cycle duration | 1800 s (full WLTP) |
The Scope shows the complete time history of a signal — exactly what a hardware oscilloscope shows on a test bench.
Stop Time controls how long the simulation runs. It is one of the most commonly changed parameters.
Short stop time (e.g. 10 s)
Good for checking model behaviour at one operating point. Use for today's exercises.
Long stop time (e.g. 1800 s)
Needed for full drive cycle simulation. WLTP = 1800 s, urban phase only = 589 s.
Build: Constant (300 RPM) → Gain (0.1047) → Display
This represents: motor spinning at 300 RPM → unit conversion to angular velocity → 31.4 rad/s output to motor controller
In Session 07 you wrap the Gain block into a reusable subsystem called RPM_to_RadPerSec. The model structure stays the same — only the organisation changes.
In Onramp: Constant (300) → Gain (0.1047) → Display. Add a Scope in parallel with the Display. Run. Verify Display ≈ 31.4. Open Scope — what shape do you see and why?
Change Stop Time from 10 to 100. Re-run. How does the Scope output change? Now change it to 1800. What does 1800 s represent in a real drive cycle context?
Change the Constant block value to 600. Re-run. What does the Display show now? Verify your answer: 600 × 0.1047 = ?
You now have a working RPM→rad/s conversion model. If a full BEV powertrain model contained 10 motors, you would need 10 identical Gain blocks. There has to be a better way to organise this.
Session 07 introduces subsystems — the mechanism for grouping, naming, and reusing blocks. The RPM→rad/s Gain becomes a single named subsystem block.