PWM DUTY CYCLE SIMULINK

2 次查看(过去 30 天)
PAUL
PAUL 2024-10-14
编辑: Jaskirat 2025-1-29
I have been working on nxp s32k312 microcontroller board, currently i am facing issue with the pwm duty cycle.
in the below image i am unable to change the pwm duty in the simulink model even though the generated c code seems to have it in place. Can some explain please. I have uploaded the model file(zip)

回答(1 个)

Jaskirat
Jaskirat 2025-1-29
编辑:Jaskirat 2025-1-29
There does not seem to be a direct way to access the PWM duty cycle from the Simulink block.
However the following file exchange might be helpful-
Alternatively, you can also refer the following page to create your own driver block-

类别

Help CenterFile Exchange 中查找有关 Simulink Supported Hardware 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by