Is it possible to inline Code Gen of top level Simulink model containing model references?
2 次查看(过去 30 天)
显示 更早的评论
I am using MATLAB 2021b. I have a top level Simulink model containing several lower level model references. When generating C# code, it is possible to change the configuration settings so that all of the model references appear as inlined code, rather than function calls in the top level .c file? In my application, I am keen to improve execution speed and generating inlined code could help with this aim.
0 个评论
回答(1 个)
Benjamin Thompson
2022-8-16
For generating C or C++ code using Embedded Coder, if you right click on the subsystem block, go to Block Parameters, and go to the Code Generation tab, you will see the available function packaging options for the block. One of those is inline.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!