Can we generate macro function in code, using simulink model and RTW EC auto coder ?
4 ビュー (過去 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!