Simulink code generation - turning off a subsystem
이전 댓글 표시
I have a question about code generation and subsystems.
My simulink model is connected to a simcoupler subsystem which connects the model with a circuit in PSIM, a circuit modelling software.
During code generation I want to turn this module off, so that the generated code does not include it. Is there a way to do this?
답변 (2개)
Kaustubha Govind
2013년 5월 23일
1 개 추천
You could use Variant subsystems with the other variant being an empty subsystem. Before generating code, simply switch to the other variant.
Azzi Abdelmalek
2013년 5월 15일
0 개 추천
댓글 수: 1
Valmir Sadiku
2013년 5월 15일
you can also comment it out if you have Matlab 2012b or a newer Version.
카테고리
도움말 센터 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!