Can we generate macro function in code, using simulink model and RTW EC auto coder ?
1 次查看(过去 30 天)
显示 更早的评论
We are currently having lot of for loops , and they are just to fetch the data from a constant array in to a local data array We need to optimze that .
Is there any way in Matlab modelling ,
Can we generate a Macro code , instead of regular C code ,using the library block sets in simulink and RTW-EC Auto code generator ?
that will increase the memory consumption , but my execution can be improved !!
0 个评论
回答(1 个)
Kaustubha Govind
2013-5-3
The closest thing that I can think of is to increase the Loop unrolling threshold on the Configuration Parameter window's Optimization Pane, so the indexing code is inlined, instead of using for-loops. I'm not sure if this is what you intend when you say "macro code".
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!