The active variant must be configured before the simulation is started for pwm generator
2 views (last 30 days)
For the Matlab example 'power_PVarray_3500W', I change the inverter from single-phase to three-phase and the pwm generator from single-phase to three-phase bridge (6 pulse).
The following error is displayed :
Block 'power_PVarray_3500W/Inverter Control/PWM_Generator/Modulator type' attempted to change the active variant during simulation. The active variant must be configured before the simulation is started.
Joel Van Sickel on 13 Jun 2022
modifying the "inverter control" block as is likely caused the problem. That block is specifically designed as a single phase inverter controller. It also has a number of internal function calls that could easily break when you start modifying it. You will need to use an alternate controller specifically designed for three phase inverter control. Here is a three phase example: https://www.mathworks.com/help/physmod/sps/ug/250-kw-grid-connected-pv-array.html