# Does PWM out of RT box support SVPWM output?

**URL:** <https://forum.plexim.com/t/does-pwm-out-of-rt-box-support-svpwm-output/1140>\
**Category:** RT Box\
**Tags:** pwm, rt-box\
**Created:** [July 9, 2022, 3:14am UTC](https://forum.plexim.com/t/does-pwm-out-of-rt-box-support-svpwm-output/1140 "2022-07-09T03:14:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WANGJINYU\_loner](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@WANGJINYU\_loner](https://forum.plexim.com/u/WANGJINYU_loner)\
**Post date:** [July 9, 2022, 3:14am UTC](https://forum.plexim.com/t/does-pwm-out-of-rt-box-support-svpwm-output/1140/1 "2022-07-09T03:14:38Z")

</div>

PLECS comes with SPWM. What should I do if I want to use SVPWM

---

<div class="post-metadata">

**Author:** ![Manu\_Parimi](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/manu_parimi/32/6_2.png) [@Manu\_Parimi](https://forum.plexim.com/u/Manu_Parimi)\
**Post date:** [July 11, 2022, 5:39pm UTC](https://forum.plexim.com/t/does-pwm-out-of-rt-box-support-svpwm-output/1140/2 "2022-07-11T17:39:27Z")

</div>

Hi Wangjinyu,

We are currently working on adding SVPWM support to the RT Box library, but in the meantime, space vector modulation can be achieved by adjusting the duty cycle inputs into the PWM block.

Refer to the “Three-Phase T-Type Inverter” under PLECS Demo Models \> Power Supplies for one implementation that should be reasonably efficient (see screenshot below).

 ![6](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/10cb471f1b430cdc70c38749ca34e6011a17f5ff.jpeg)

We also have a C-Script based implementation (attached) that will work, but might be less efficient due to the use of trigonometric functions.

Hope this helps!

Regards,Manu

[SVPWM\_2L\_VSIdemo.plecs](https://forum.plexim.com/uploads/short-url/e6u38gWXxuZaPCF4h9mH3fY46ty.plecs) (53.8 KB)

---

<div class="post-metadata">

**Author:** ![WANGJINYU\_loner](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@WANGJINYU\_loner](https://forum.plexim.com/u/WANGJINYU_loner)\
**Post date:** [July 13, 2022, 2:37am UTC](https://forum.plexim.com/t/does-pwm-out-of-rt-box-support-svpwm-output/1140/3 "2022-07-13T02:37:57Z")

</div>

Thank you very much!
