How to improve the efficiency of the code genrated by simulink

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

How to improve the efficiency of the code genrated by simulink

1,306 次查看
ppap
Contributor I

Hi:

   Recently I am using the chip 5744p with MBDT. Limited by interrupt interval, I can not perform a particularly large number of functions in the interrupt function.

    I want to know, for simulink code generation, is there any way to improve the execute efficiency of the genrated code, that is, speed it up? 

0 项奖励
回复
1 回复

1,095 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi ppap‌,

There are 3 approaches:

#1: enable optimizations from Simulink code generation:

 pastedImage_1.png

#2: enable optimization in Target Compiler

pastedImage_2.png

#3: re-design the Simulink model to remove unnecessary conversion/blocks etc: Something like this: https://community.nxp.com/message/902741#comment-902849 

Hope this helps!

Daniel

0 项奖励
回复