Code generation paths of model references

5 ビュー (過去 30 日間)
dbeg
dbeg 2013 年 12 月 19 日
回答済み: Abhijeet Kate 2025 年 1 月 16 日
Hi,
I have a top model in which there are several model references. If I generate code, code of top model is generated in folder:
code_generation\top_model_ert_rtw
code of model references is generated into:
code_generation\slprj\ert\model_reference1\
code_generation\slprj\ert\model_reference2\
code_generation\slprj\ert\model_reference3\ ...
and there is also: code_generation\slprj\ert\shared_utils\
If I have for example 100 different model references in my top model, and if I would like to link external IDE enviroment directly to code generation directory in simulink project, I would have to set 100 paths in IDE enviroment (metrowerks eclipse 10.5).
Is it possible to compact the code of model references in single file, or is it possible to generate all .c, .h files into one directory.
Or any other suggestion would be welcomed.
Thank you and best regards, Dejan

回答 (3 件)

Niklas Nylén
Niklas Nylén 2013 年 12 月 20 日
Not sure that it solves your problem since I have not actually used it myself, but it sounds like you are looking for something like packNGo, http://blogs.mathworks.com/seth/2008/11/26/wheres-the-code/
  2 件のコメント
dbeg
dbeg 2013 年 12 月 20 日
Thanks for response, pack and go would not solve my problem. I would like to link code directly to IDE without packing and unpacking.
dbeg
dbeg 2013 年 12 月 20 日
Thanks for response, pack and go would not solve my problem. I would like to link code directly to IDE without packing and unpacking.

サインインしてコメントする。


Qingshan Xie
Qingshan Xie 2020 年 8 月 19 日
i meet the same question, have anyone help me to solve ?
Dear dbeg, did you get the right answer?

Abhijeet Kate
Abhijeet Kate 2025 年 1 月 16 日
Hello,
I am facing exact same issue.Is this issue solved @dbeg?

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by