Discretizing the PWM Motor Drive: example in the help of Matlab (Simulink) not working

조회 수: 6 (최근 30일)
Maria
Maria 2018년 6월 8일
답변: Sabin 2025년 7월 2일
Hello, I was running the example for PWM Motor Drive as provided in the Matlab help page here https://se.mathworks.com/help/physmod/sps/powersys/ug/simulating-variable-speed-motor-control.html. I wanted to simulate it at discrete time, so I followed the instructions as per section "Discretizing the PWM Motor Drive". However, I get the error "The "FixedStepDiscrete" solver cannot be used to simulate block diagram 'motor_drive_matlabexample' because it contains continuous states".
Can someone tell me what I am doing wrong? I attach the Simulink file.

답변 (1개)

Sabin
Sabin 2025년 7월 2일
Fourier1 block has sample time 0 which means is continuous time. Therefore, it would not be possible to use FixedStepDiscrete. The options are: 1) Use fixed step solver with ode3, ode14x, ode1be or any other solver that suppoorts continuous states; or 2) Change the sample time in the Fourier1 block.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Motor Drives에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by