rtwbuild
(Not recommended) Build generated code from a model
rtwbuild
is not recommended. Use slbuild
instead.
Syntax
Description
rtwbuild(
generates code from
model
)model
based on current model configuration parameter
settings. If model
is not already loaded into the
MATLAB® environment, rtwbuild
loads it before
generating code.
If you clear the Generate code only model configuration parameter, the function generates code and builds an executable image.
To reduce code generation time, when rebuilding a model,
rtwbuild
provides incremental model build. The code
generator rebuilds a model or submodels only when they have changed since the
most recent model build. To force a top-model build, see the
'ForceTopModelBuild'
argument.
rtwbuild(
uses additional options specified by one or more model
,Name,Value
)Name,Value
pair arguments.
rtwbuild(
generates code
from subsystem
)subsystem
based on current model configuration
parameter settings. Before initiating the build, open (or load) the parent
model.
If you clear the Generate code only model configuration parameter, the function generates code and builds an executable image.
rtwbuild(
generates code from subsystem
,'Mode','ExportFunctionCalls'
)subsystem
that includes function calls
that you can export to external application code if you have Embedded Coder®.
returns the handle to a SIL block created for code generated from the specified
subsystem if the Create block configuration parameter
is set to blockHandle
= rtwbuild(subsystem
,'Mode','ExportFunctionCalls')SIL
and if you have Embedded Coder. You can then use the SIL block for numerical equivalence
testing.
Examples
Input Arguments
Output Arguments
Tips
You can initiate code generation and the build process by:
Pressing Ctrl+B.
Selecting Code > C/C++ Code > Build Model.
Invoking the
slbuild
command from the MATLAB command line.
Extended Capabilities
Version History
Introduced in R2009aSee Also
codebuild
| rtwrebuild
| slbuild
| coder.buildstatus.open
| coder.buildstatus.close