Main Content

Mass-Spring-Damper with Controller

This example shows a controlled mass-spring-damper. A controller adjusts the force on the mass to have its position track a command signal. The initial velocity for the mass is 10 meters per second. The controller adjusts the force applied by the Force Source to track the step changes to the input signal.

Model

Simulation Results from Simscape Logging

The plots below show the position of the mass and the forces acting on the mass.