How to configure single PWM block two times in .vsm file ?

Chirag Gupta
Chirag Gupta Altair Community Member
edited January 2022 in Community Q&A

I have an application where one PWM block needs to be configured in .vsm file two times so that I can generate a specific required PWM pattern. I have attached a pic of the PWM pattern I am trying to generate.image

For our appplication, hardware requirements are,  At start >> all TOP & BOT switches of inverter should be OFF.  STEP1 >> When programe played in EMBED, PWM Signal for TOP & BOT switches is D=0.  then User will provide input to start step2 STEP2 >> PWM Signal for BOT Switches is D=1 for time 't1' and D=0 after time 't1', during this opertation TOP switches PWM will remain D=0  then User will provide input to start step3 STEP3 >> ALL TOP switches PWM signal is D=0 and BOT switches PWM signal is D=1.  then User will provide input to start step4 STEP4 >> Fixed duty cycle D=0.5 to TOP & BOT switches with both PWM are opposite to each other.   { D=Turn ON Duty cycle }

But when I am trying to change the setting of EPWM block in one of the two places where I have used I get an error.

image

Waiting for reply.

Best Answer

  • Chandra Kumar Manavalan
    Chandra Kumar Manavalan
    Altair Employee
    edited January 2022 Answer ✓

    Hi Chirag,

    Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .

    Please find the attached PWM example module for your reference.

    Thanks,

    Chandru  

     

     

     

Answers

  • Sreeram Mohan_20368
    Sreeram Mohan_20368
    Altair Employee
    edited January 2022

    Hi Chirag, 

     

    Could you please attach the vsm file ?

     

    --sreeram

  • Chandra Kumar Manavalan
    Chandra Kumar Manavalan
    Altair Employee
    edited January 2022 Answer ✓

    Hi Chirag,

    Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .

    Please find the attached PWM example module for your reference.

    Thanks,

    Chandru  

     

     

     

  • Chirag Gupta
    Chirag Gupta Altair Community Member
    edited January 2022

    Hi Chirag,

    Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .

    Please find the attached PWM example module for your reference.

    Thanks,

    Chandru  

     

     

     

    Thanks, Chandru I was able to solve the problem.