Code generation for subsystem only

2 次查看(过去 30 天)
Milan
Milan 2013-5-16
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?

回答(1 个)

Valmir Sadiku
Valmir Sadiku 2013-5-16
right click on the subsystem then go to 'C/C++ Code' and select 'Build This Subsystem'
  7 个评论
Milan
Milan 2013-5-27
Hi kaustubha TO be clear i am using simcoupler ,i dont want to generate code for it .i am using environment control block but it act switch in input side can i have same option at output terminal .
Kaustubha Govind
Kaustubha Govind 2013-5-29
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".

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by