This example shows how to control a two-quadrant chopper. The two-quadrant chopper operates in the first and fourth quadrants, allowing positive and negative output voltage. The Control subsystem implements a simple PI-based control algorithm for controlling the output current. The total simulation time (t) is 0.5 seconds. At t = 0.25 seconds, the polarity of the load DC source E is changed.
The plot below shows the requested and measured current for the test and the output voltage in the circuit.