This example shows how to control the DC-link voltage using a grid-connected rectifier. The Rectifier control subsystem uses a PI-based cascade control structure. The Scopes subsystem contains scopes that allow you to see the simulation results. If you have a license for HDL Coder™, you can generate VHDL code for an FPGA using the Simscape™ HDL Workflow Advisor.
The plot below shows the DC voltage and AC phase currents.