This example demonstrates the switching on of a resistive 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.