This example demonstrates the switching on of an R-L load
operated by an H bridge. DC output voltage is equal to 2 *
(dutyCycle - 0.5) 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.