ModelSim Lab
A space to experimentOpen lab

Inverted Pendulum

Change the plant. Change the controller. Compare what actually happens.

MULTI-SYSTEM LABθ = 0 upright · positive θ leans right · positive force points rightSingle-system learning lab ↗

Reference, disturbance, duration and sample interval are shared. Plant parameters and controllers remain independent.

Physical Systems

1 system · 1 visible
View
Selected: Pendulum A
Open LoopSelected

M 1 kg · m 0.2 kg · l 0.5 m

PHYSICAL SYSTEMθ = 0 at upright · schematic scale
θ = 0.1 radcart x = 0 m · u = 0 N
Motion follows the computed statest = 0 s
eθ=θref−θ,u=−C(s)eθe_\theta=\theta_{ref}-\theta,\qquad u=-C(s)e_\theta
0 / 10 s

Large angle excursion: the pendulum moved more than 0.35 rad from upright. This describes physical motion, not necessarily a numerical error or a failure to recover.

Educational fall threshold exceeded (0.6 rad). Inspect the complete trajectory.

Compare responses

Distinct systems. One view of their computed behavior.

1 response trace · scroll to zoom · drag to pan

Measured performance

Metrics belong to the displayed run snapshots. End values are finite-time observations, not guaranteed steady states.

MetricPendulum AOpen Loop
Peak output [rad]6.097
Value at end [rad]5.751
Settling (2% band) [s]
Error at end [rad]-5.751
RMS tracking error [rad]3.776
Integral absolute error [rad·s]30.69
Integral squared error [rad²·s]142.6
Time-weighted absolute error [rad·s²]154.3
Maximum actuator force [N]0
RMS actuator force [N]0
Time saturated [fraction]0
Maximum angle [rad]6.097
Maximum cart displacement [m]0.09291
Cart error at end [m]-0.04625
Time within upright tolerance [s]0
Stabilization testNot stabilized

Stabilized means the last full second of a run lasting at least 5 s stays within |θ|≤0.035 rad and |ω|≤0.1 rad/s, with no fall or travel breach. Cascade additionally checks final cart error and speed. It is a result of this simulated test, not a global stability proof.