Simcode Variable frequency PWM

Altair Forum User
Altair Forum User
Altair Employee
edited November 2023 in Community Q&A

I'd like to do produce a variable frequency PWM using simcoder. I'd like to let the PWM be 100 kHz in one period, 200 kHz in next period, then repeat.
I used the variable frequency PWM block to achieve it. However, the simulation message always say the variable frequency PWM block is ignored.

image

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited August 2023

    Please make sure the name in the "1-ph PWM" block is the same as in the "Variable Frequency PWM" block.

  • AndreyB
    AndreyB New Altair Community Member
    edited November 2023

    Hello. 

    I do not want to create a separate thread for a related question, so I ask in this thread.

    I need to create two Variable Frequency PWM blocks with 180 phase shift between each other. They work fine when the input of variable frequncy blocks is 1. But, once it changes, the 180 degree phase shift (on PWM2) becomes glitched in the simulation and changes to some other value.

    P.S. Once uploaded to the DSP it is actually working well.

    Thanks in advance!

    image