🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

User: "Chirag Gupta"
Altair Community Member
Updated by Chirag Gupta

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.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Chandra Kumar Manavalan"
    Accepted Answer
    Updated by Chandra Kumar Manavalan

    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