SPWM Controller (3-Phase)

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Dear Sirs,

 

I'm again writing to you for some guidance on this matter.

According to the doc file Digital Power150UG, in chapter 3; there is a controller that I want to utilize directly in my 28377S (specifically Digital Power/ Simulation/ Controllers/ VCM-SPWM 3-phase ).

 

After I lasso the block and tried to perform Code Gen I get the following: Code generation disabled for compound SPWM (3-phase).

 

I assume this happens due to I'm in the Simulation section, but the rest of the sections don't have that block (and I don't need the SPWM realization - 3-phase...under Examples/Codegen/PWM).

 

There are particular steps to utilize and implement this block that I'm not aware?

Or how can I enable the code generation for this compound?

 

 

 

Thank you for your time.

 

 

 

 

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    Hello Jake,

     

    If you would like to generate code please use the ePWM block located in Embedded/Delfino/PWM instead of SPWM block.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    Hello!

     

    Thank you for your answer.

     

    I solved the issue after a long night. The problem was that in the look-up table block and the modulator block both had the Execute interrupt enabled (even with different EPWMs). Just removed one and all worked fine.

     

    Thank you