Simulink code generation - turning off a subsystem
5 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (2 件)
Kaustubha Govind
2013 年 5 月 23 日
You could use Variant subsystems with the other variant being an empty subsystem. Before generating code, simply switch to the other variant.
0 件のコメント
Azzi Abdelmalek
2013 年 5 月 15 日
1 件のコメント
Valmir Sadiku
2013 年 5 月 15 日
you can also comment it out if you have Matlab 2012b or a newer Version.
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!