Parameter and constant management for embedded coder
古いコメントを表示
Hello,
I'm currently working on Simulink model & embedded coder. In my model I have several submodules. I would like to use them as function in a C++ code. To do so I have selected "treat as atomic unit" & function packaging as "reusable function". In my model I have parameters (variable stored in my workspace) and I set the default parameter behavior as "tunable" because I want to be able to change them in my code. Functions are well generated but I've noticed that constant values ( for example a gain of 3.6 for km/h to m/s conversion
) are stored in a specific structure and this structure is passed in argument of my function.
) are stored in a specific structure and this structure is passed in argument of my function.I would like to have my parameters to be tunable but those constant to be inlined in order to don't have those constant passed in argument of my function.
How can I do this?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!