Code generation for subsystem only
Afficher commentaires plus anciens
I am trying to generate code for only a subsystem of a model, while ignoring the rest. Is there a way to set embedded coder to only generate code for a subsystem?
Alternately, is it possible to set a subsystem such that code cannot be generated for it?
Réponses (1)
Valmir Sadiku
le 16 Mai 2013
1 vote
right click on the subsystem then go to 'C/C++ Code' and select 'Build This Subsystem'
7 commentaires
Milan
le 16 Mai 2013
Valmir Sadiku
le 16 Mai 2013
just comment out the certain Subsystems.
Milan
le 17 Mai 2013
Kaustubha Govind
le 17 Mai 2013
Milan: You can still generate code from the whole model, but exclude the subsystem by commenting it out (this feature was introduced in R2012b).
Milan
le 27 Mai 2013
Milan
le 27 Mai 2013
Kaustubha Govind
le 29 Mai 2013
Milan: Please see the video in the link from my previous comment for a demo on commenting out a block in R2012b and later releases. Can you explain what you mean by "it act switch in input side can i have same option at output terminal".
Catégories
En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!