Code generation for subsystem only
이전 댓글 표시
I am trying to generate code for only a subsystem of a model, while ignoring the rest. Is there a way to set embedded coder to only generate code for a subsystem?
Alternately, is it possible to set a subsystem such that code cannot be generated for it?
답변 (1개)
Valmir Sadiku
2013년 5월 16일
1 개 추천
right click on the subsystem then go to 'C/C++ Code' and select 'Build This Subsystem'
댓글 수: 7
Milan
2013년 5월 16일
Valmir Sadiku
2013년 5월 16일
just comment out the certain Subsystems.
Milan
2013년 5월 17일
Kaustubha Govind
2013년 5월 17일
Milan: You can still generate code from the whole model, but exclude the subsystem by commenting it out (this feature was introduced in R2012b).
Milan
2013년 5월 27일
Milan
2013년 5월 27일
Kaustubha Govind
2013년 5월 29일
Milan: Please see the video in the link from my previous comment for a demo on commenting out a block in R2012b and later releases. Can you explain what you mean by "it act switch in input side can i have same option at output terminal".
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!