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!