Simulink code generation - turning off a subsystem
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Kaustubha Govind
le 23 Mai 2013
You could use Variant subsystems with the other variant being an empty subsystem. Before generating code, simply switch to the other variant.
0 commentaires
Azzi Abdelmalek
le 15 Mai 2013
1 commentaire
Valmir Sadiku
le 15 Mai 2013
you can also comment it out if you have Matlab 2012b or a newer Version.
Voir également
Catégories
En savoir plus sur Subsystems dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!