Generate Code for single model reference in other parent model
1 回表示 (過去 30 日間)
古いコメントを表示
Darshan Gade
2020 年 11 月 23 日
回答済み: Chaitanya Mallela
2020 年 11 月 26 日
I am trying to generate code for one of the simulink model referenced in diffrent model(Parent model). When i use command rtwbuild (Parent model) it starts generating code for all referenced models. How can i generate code only for intended referenced model without going for individual code generation of that model?
Thanks in advance !
2 件のコメント
Fangjun Jiang
2020 年 11 月 23 日
did you try rtwbuild(Subsystem) where Subsystem is the full path of the Model block in your parent model?
採用された回答
Chaitanya Mallela
2020 年 11 月 26 日
'slbuild' function accepts model name, normal subsystem path and handle to model and subsystem. Here reference subsystem cannot be taken as valid input argument. To make rtwbuild work for reference subsystem, open it as a top model (clicking bottom left icon of the block) and specify the corresponding path.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Model References についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!