This examples shows how the current in an electric circuit can be controlled using a sensor, a controller and a voltage source with signal input.
currentSensor.i