Borrar filtros
Borrar filtros

Simulink code generation - turning off a subsystem

5 visualizaciones (últimos 30 días)
HJ
HJ el 15 de Mayo de 2013
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?

Respuestas (2)

Kaustubha Govind
Kaustubha Govind el 23 de Mayo de 2013
You could use Variant subsystems with the other variant being an empty subsystem. Before generating code, simply switch to the other variant.

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Mayo de 2013
Remove the subsystem then connect its inputs to Terminator block
  1 comentario
Valmir Sadiku
Valmir Sadiku el 15 de Mayo de 2013
you can also comment it out if you have Matlab 2012b or a newer Version.

Iniciar sesión para comentar.

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by