Add Average-Value Inverter Block
In the Simulink® model that contains the Surface Mount PMSM block, add an Average-Value Inverter block from the Motor Control Blockset™ library. The Average-Value Inverter block reads the normalized PWM duty-cycle and DC voltage input (in volts) and outputs the phase voltages. Connect the Vabc output port of the Average-Value Inverter block to the PhaseVolt input port of the Surface Mount PMSM block.