LLC Resonant Converter Controller Design Workflow
R2026bLLC Resonant Converter Controller Design Workflow
This example shows the end-to-end workflow for designing, validating, and deploying a voltage controller for an LLC resonant DC-DC converter, starting from a set of converter parameters and ending with a compensator that is validated in simulation, robust across the operating range, and deployable to a Texas Instruments® C2000™ F28379D LaunchPad™ running against a Speedgoat® real-time plant.
The workflow is arranged in six stages: model configuration and desktop simulation, online frequency response estimation (FRE), stability and robustness analysis, hardware-in-the-loop (HIL) testing, hardware FRE validation, and algorithm export. These stages share a common set of parameters and gains that flow through subsystem references and MAT-file data, so a single edit in the plant or controller definition propagates automatically into every downstream stage.

LLC Resonant Converter Control Design Steps
Each stage is a separate live script, accessible from a project shortcut on the MATLAB® toolstrip. You can configure the plant and controller individually for each step.
The example series consists of these steps:
Configure and Simulate LLC Resonant Converter Controller
Estimate Online Frequency Response of LLC Resonant Converter
Verify Stability and Analyze Sensitivity for LLC Resonant Converter
Validate Controller with Hardware in the Loop for LLC Resonant Converter
Validate Controller Gains with Frequency Response Estimation on Hardware
Export the Controller Algorithm for Custom Targets
Open the LLC Resonant Converter Project
The project contains the reference application, which consists of the Simscape™ Electrical™ plant subsystem reference, the voltage controller subsystem reference, the ctrlData.mat gains data store, all supporting utilities, and the toolstrip project shortcuts that open the live script for each stage of this workflow. Open the project.
prj = openProject("ResonantConverterRefEx");Open the ResonantConverterSim.slx Simulink® model.
open_system("ResonantConverterSim");The ResonantConverterSim.slx model is the entry point for the closed-loop desktop simulation and contains the following top-level components, which you can customize in accordance with your design:
Resonant converter plant. Subsystem reference that models the LLC tank, transformer, rectifier, and output filter using Simscape Electrical. Configurable to half-bridge or full-bridge topology through the
PlantConfigproperty of theResonantConvstructure.Voltage controller. Subsystem reference at
~\ModelComponents\Controller\VoltageController.slxthat implements direct frequency control of the resonant tank. Supports proportional-integral (PI) and 3-pole 3-zero (3p3z) compensators, selectable through theGainsSelectormask parameter.Controller gains data store.
ctrlData.matin~\Data\stores the default gains produced by the analytical design and any custom gains tuned by hand or refined through FRE, so every downstream stage reads from the same file.Project shortcuts. Toolstrip buttons that open the live script for each stage of the workflow, along with supporting shortcuts for parameterization and post-processing.

For the first stage of the workflow, which configures the converter parameters and controller gains and runs the closed-loop simulation, click the Configure and Simulate project shortcut.
Workflow Steps
For more information about each step, see: