Why does the PWM Generator (DC-DC) block not work for negative time?
7 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Sabin
2025-8-12
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
PWM block in Simulink - https://www.mathworks.com/help/simulink/slref/pwm.html
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pulse Width Modulation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!