メインコンテンツ

Control Algorithm Design

R2026b
Controller gain computation, PI and PR controllers, phase-locked loops, reference frame transforms, signal conditioning

Use these blocks to implement the signal chain from sensor input to PWM output. Gain computation blocks calculate PI gains directly from converter specifications, so you can skip manual tuning. Voltage and current regulator blocks close the corresponding control loops for DC-DC, PFC, and resonant topologies. For AC reference tracking in renewable energy applications, use the PR Controller block. Phase-locked loops extract phase angle and frequency from an AC source, and Clarke and Park transforms convert between stationary and rotating reference frames. Use IIR Filter and SinCos Embedded Optimized blocks for signal conditioning and embedded-optimized math.

Blocks

expand all

DCDC Converter Controller block icon.DCDC Controller ParametersCompute controller parameters for DC-DC nonisolated converter voltage regulation (Since R2026b)
DCDC Voltage Controller block icon.DCDC Voltage ControllerRegulate output voltage of a DC-DC nonisolated converter (Since R2026b)
PFC Controller Gains block icon.PFC Controller GainsCompute controller gains for power factor correction current and voltage loops (Since R2026b)
PFC Current Controller block icon.PFC Current ControllerRegulate inductor current in a power factor correction boost converter (Since R2026b)
PFC Voltage ControllerRegulate DC bus voltage in a power factor correction boost converter (Since R2026b)
Soft Charge ControlGenerate thyristor gate pulses for soft-charging a DC bus capacitor (Since R2026b)
Resonant Converter Gains block icon.Resonant Converter GainsCompute voltage controller gains for a resonant converter (Since R2026b)
Resonant Voltage Controller block icon.Resonant Voltage ControllerRegulate output voltage of a resonant converter using configurable controller gains (Since R2026b)
PR ControllerImplement a proportional-resonant controller for AC signal tracking (Since R2026b)
atan2Compute four-quadrant arctangent
Clarke TransformImplement ab to αβ transformation
Inverse Clarke TransformImplement αβ to abc transformation
Inverse Park TransformImplement dq to αβ transformation
Park TransformImplement αβ to dq transformation
SinCos Embedded OptimizedImplement sine and cosine functions (Since R2024b)
IIR FilterImplement infinite impulse response (IIR) filter
Derating FunctionCompute derating factor
PLL with Feed ForwardCompute position and angular frequency from orthogonal sinusoidal signals (Since R2023b)
SOGI PLLEstimate phase angle and frequency of single-phase signal using second-order generalized integrator phase-locked loop (Since R2026b)
Quadrature OscillatorGenerate sine and cosine signals from angular frequency input (Since R2026b)