Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Space Vector PWM doesn't work with fixed-step solver

0 votes


I'm trying to use the "Space Vector PWM"-Module with a fixed step-size / on the RT-Box with Plecs 4.5.3. 

When running/compiling I get the error "Variable-step discrete tasks are not supported with a fixed-step solver or a 'Discrete state-space' model.", which is caused by the modules C-Block.

Is there a workaround for this, or is rewriting the code the only option?


asked Feb 16, 2021 by mmsat (21 points)

1 Answer

+1 vote
Best answer
I remember there is a demo 'three phase npc inverter' or something like that, in which there is also a SVM controller, but the SVPWM algorithm is implemented in the launchpad ,maybe you can run your algorithm on launchpad and test your circuit topology on your RT-BOX?
answered Feb 18, 2021 by shichenseu (299 points)
selected Feb 18, 2021 by mmsat

Found it in 'npc_solar_inverter_lcl_active_damping' ... thanks!