ModelSim Lab
A space to experimentOpen lab

Mass–Spring–Damper

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

MULTI-SYSTEM LABb = damping coefficient [N·s/m] · v = velocity [m/s]Single-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: System A
Open LoopSelected

m 2 kg · b 3 N·s/m · k 20 N/m

PHYSICAL SYSTEMSI units · schematic scale
m2 kgk = 20 N/mb = 3 N·s/mx = 0.1 m
Positive displacement →t = 0 s
mx¨+bx˙+kx=Fexternal(t)+u(t)m\ddot{x}+b\dot{x}+kx=F_{external}(t)+u(t)
0 / 10 s

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.

MetricSystem AOpen Loop
Peak output [m]0.1
Value at end [m]3.38e-5
10–90% rise time [s]
Settling (2% band) [s]5.24
Step overshoot [%]
Error at end [m]0.09997
RMS tracking error [m]0.1005
Integral absolute error [m·s]0.985
Integral squared error [m²·s]0.1011
Time-weighted absolute error [m·s²]5.008
Maximum actuator force [N]0
RMS actuator force [N]0
Time saturated [fraction]0
Maximum velocity [m/s]0.2285
Maximum acceleration [m/s²]1
Damping ratio ζ0.2372
Natural frequency (rad/s)3.162
Damped frequency (rad/s)3.072