Generate Code for single model reference in other parent model
조회 수: 2 (최근 30일)
이전 댓글 표시
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에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!