This tutorial uses SmartCtrl to design a PI controller for a current loop of a buck converter. The design method used is applicable to any topology.