Simulink code generation - turning off a subsystem
9 次查看(过去 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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!