This example of an H bridge with DC drive demonstrates the
operation of the DC machine in four quadrants. The DC output
voltage is equal to 2 * (dutyCycle - 0.5) times the
input voltage.
| start time (s) | machine speed | machine torque | mode | 
|---|---|---|---|
| 0 | zero | zero | |
| 3 | positive | zero | |
| 6 | positive | positive | motor | 
| 9.5 | positive | negative | generator | 
| 12.5 | negative | negative | motor | 
| 15.5 | negative | positive | generator | 
| 19 | negative | zero | |
| 22 | zero | zero | 
Plot machine current dcpm.ia, averaged current
meanCurrent.y, machine speed
dcpm.wMechanical, averaged machine speed
dcpm.va and torque
dcpm.tauElectrical.