Use Simulink and Simscape Electrical to model analog electronic components and digital control algorithms in the same simulation environment. Closed-loop simulation of the power stage and the controller lets you evaluate and verify design choices before implementing the controller.
Use simulation to:
- Model a power stage using circuit components or a pre-built power converter block
- Simulate the converter model at different levels of power electronics switching fidelity: average-value, ideal, or detailed nonlinear
- Design, simulate, and compare different controller architectures, including voltage mode control and current mode control
- Apply classical control techniques and design supervisory control logic for mode switching
- Autotune controller gains in a single or multiple feedback loops using automated tuning tools
Try Examples
Learn More
- 10 Ways to Speed Up Power Conversion Control Design with Simulink – Whitepaper
- Designing Efficient Power Electronics Converters with MATLAB and Simulink – Ebook
- Using Simulink and Simscape with Detailed SPICE Subcircuits – Article
- Estimating the Frequency Response of a Power Electronic Model – Article
Videos
- How to Develop DC-DC Converter Control in Simulink – Video Series
- EE Journal Chalk Talk: Simulation-Based Tuning of Power Electronics Controllers (21:43)
- Developing Solar Inverter Control with Simulink – Video Series
- Using Simulink to Develop Grid-Tied Solar Inverter Controls (26:46)
- PID Controller Tuning for a Buck Converter (6:31)
Examples
Low Power Converter:
- Power Converters Modeling Techniques
- Buck Converter with Thermal Dynamics
- Two-Phase DC-DC Converter Current Control
High Power Converter:
More power converter examples and power inverter examples
Simulink accelerates the process of testing and verifying the control design of power converters.
- Generate control code for the power converter for real-time hardware-in-the-loop (HIL) simulation
- Test real-time execution of your power converter controls before verifying it on a hardware prototype
- Identify and correct common errors in control design by generating test cases with Simulink Design Verifier and prevent potential damages to expensive hardware prototypes
- Check model and code coverage with Simulink Coverage to ensure test completeness and support requirement traceability
“The transition from design model to real-time software was very fast thanks to the complete compatibility between MATLAB & Simulink and Speedgoat.”
Learn More
- Design Efficient DC-to-DC Power Converters – MATLAB EXPO
Videos
- Power Electronics HIL Testing Using Simscape to HDL Conversion (30:00)
- How to Use Rapid Control Prototyping to Validate Electric Motors and Power Converters – Video Series
- Implementing and Real-Time Testing of a Grid-Tied Solar Inverter Controller (23:53)
- Hardware-in-the-Loop Testing of Control Algorithms for Modular Multi-Level Converters (25:54)
- FPGA-based Hardware-in-the-Loop (HIL) Simulation for Power Electronics (49:14)
With Simulink and Embedded Coder, you can reduce and eliminate the need for manual coding.
- Use Fixed-Point Designer to model, optimize, and generated code for fixed- and floating-point algorithms in low-cost, low-power converter applications
- Generate optimized and stable C/C++ control code for implementation on microcontrollers or synthesizable HDL code for FPGA programming or ASIC prototyping
- Automatically regenerate new, updated code to reflect the changes in the control design of the power converter
All generated C/C++ and HDL code is fully portable, optimizable with a range of options, bidirectionally traceable to the Simulink model, and certifiable with certification kits.
“The code we generated with Embedded Coder does just what it is supposed to do. Writing code with nine PI loops in it by hand and then debugging it on hardware would have added six months or more to the schedule.”