FTM module block in simulink

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

FTM module block in simulink

跳至解决方案
699 次查看
Sriram
Contributor IV

Hello i am trying a generate pwm signals from the FTM module block in simulink. The model is built without any errors but when i see the pwm outputs it is not what i expect it to be. the output is stuck at the initial duty cycle i entered in the block settings. i have attached the model .

Is the problem because of the sine wave sources? if it is then how can i incorporate sine wave source in the code generation.

Thank you

标记 (3)
0 项奖励
1 解答
671 次查看
SorinIBancila
NXP Employee
NXP Employee

Hello, 

The problem I found in your model is that the Sample Time of the PWM Generator block is set too low. You can try to increase it so that each step has enough time to execute. You can try to use S32Design Studio for ARM to debug your application. Place breakpoints in the step function (svpwm_step), found in 'svpwm_mbd_rtw/svpwm.cand see if they are reached.

Let me know if this helps you.

Yours faithfully,

Bancila Sorin-Ioanid

在原帖中查看解决方案

0 项奖励
1 回复
672 次查看
SorinIBancila
NXP Employee
NXP Employee

Hello, 

The problem I found in your model is that the Sample Time of the PWM Generator block is set too low. You can try to increase it so that each step has enough time to execute. You can try to use S32Design Studio for ARM to debug your application. Place breakpoints in the step function (svpwm_step), found in 'svpwm_mbd_rtw/svpwm.cand see if they are reached.

Let me know if this helps you.

Yours faithfully,

Bancila Sorin-Ioanid

0 项奖励