Bidirectional DC-DC Converter Current Control
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.
Simulation Results from Simscape Logging
The plot below shows the requested and measured inductor current for the test and the battery voltage in the 12V network.
Results from Real-Time Simulation
This example, with Bidirectional DC-DC Converter controlled using modulation waveform, has been tested on a Speedgoat Performance real-time target machine with an Intel® 3.5 GHz i7 multi-core CPU. This model can run in real time with a step size of 20 microseconds.