Difference in C function argument generated from MATLAB Simulink 2010b compared to MATLAB Simulink 2018b

1 次查看(过去 30 天)
I was working on a project where I have to generate c code from MATLAB simulink 2010b version, but now I am planning to migrate to MATLAB 2018b version, and I have migrated all my model to this version and generated the code, but when I compared both the generated code, then I found some difference in function arguments (shown below).
Generated from MATLAB 2018b:
void my_func(RT_MODEL_my_func *const my_func_M)
Generated from MATLAB 2010b:
void my_func(boolean_T firstTime, BlockIO_my_func *my_func_B, D_Work_my_func *my_func_DWork)
In the above two functions we can see the difference in the arguments. My doubt, is there any setting which allows this to happen in MATLAB2018b version.

采纳的回答

Mahesh Taparia
Mahesh Taparia 2019-8-30
Hi Asang,
Prior to R2010b version of MATLAB there were 5 different coder products viz. Real-time Workshop, Stateflow Coder, Real-time Workshop Embedded Coder, Target Support Package and Embedded IDE link.
From R2011a these 5 products were combined into 3 different products namely Embedded Coder, Simulink Coder and MATLAB coder, which helped to enhance the performance of code generation. The reverting process to older version is not supported as the inherent architecture of the Code Generation is changed.

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by