change of settings on ePWM blocks

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello!

 

I created an SWPM generator for 3-phase (as well for single-phase). And after seeing the examples in the simulation about the VCM-SPWM 3-phase block  with all the configurable features (3rd harmonic injection, carrier waveform, minimum pulse width, etc.) I wonder:

Is it possible to add variables that can be called outside the Codegen block?

 

What I mean is, in the ePWMx block there are several configurable options but all must be configured previously, it cannot be modified 'on the run'; just for example, if I want to change the rising edge, I have to stop the process, enter to the block, modify it and run the whole setup again.

 

I tried to put literals on those options but it generates the error of 'Please enter a positive integer.'

 

Some ideas?

 

Thank you for your time.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hello,

     

    What you can change on the fly with the PWM block is the duty cycle (which is of course expected) but also the carrier frequency. In order to do that tick the 'change period dynamically' box and you will get an extra input in the PWM block which you can use to define the frequency.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Oh!...yes, you're right!! :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />:)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

    And seems that the phase and enable pins are available tho~ :rolleyes:/emoticons/default_rolleyes.gif' title=':rolleyes:' />

     

    Whish to have more changeable options like dead band and the action qualifier...

     

    Thank you a lot :D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />