Why does the PWM Generator (DC-DC) block not work for negative time?

5 visualizzazioni (ultimi 30 giorni)
I've attached a simple Simulink model that runs from -0.1 seconds to 0.1 seconds. The PWM Generator (DC-DC) block doesn't seem to work for negative time. (It outputs a constant 1 until time reaches 0.) Is this expected? If so, why? Should I generally avoid running simulations with negative time?

Risposta accettata

Sabin
Sabin il 12 Ago 2025
The block you are using is not suitable for negative simulation time. For simulation involving both negative and positive simulation time the following options will be more suitable:
PWM Generator in Simscape Electrical - https://www.mathworks.com/help/sps/ref/pwmgenerator.html

Più risposte (0)

Categorie

Scopri di più su Pulse Width Modulation in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by