This example demonstrates the switching on of an R-L load
operated by a step down chopper. DC output voltage is equal to
dutyCycle times the input voltage. Plot current
currentSensor.i, averaged current
meanCurrent.y, total voltage
voltageSensor.v and voltage
meanVoltage.v. The waveform the average current is
determined by the time constant L/R of the load.