This example shows how to control the inductor current of a Bidirectional DC-DC Converter. To adjust the duty cycle, the Control subsystem uses a PI-based control algorithm. The Bidirectional DC-DC Converter uses averaged switches. To achieve different levels of fidelity, you can use either modulation waveforms, averaged gate pulses, or gate pulses.
The plot below shows the requested and measured inductor current for the test and the battery voltage in the 12V network.