rtwbuild
(Not recommended) Build generated code from a model
rtwbuild
is not recommended. Use slbuild
instead. rtwbuild
is an alias for
slbuild
. If you run rtwbuild
, the software
executes slbuild
.
Syntax
Description
rtwbuild(
builds a standalone
binary executable file from the specified model, using the current
configuration parameter settings. If the model is not loaded,
model
)rtwbuild
loads the model before starting the build
process.
rtwbuild(
uses additional options specified by one or more model
,Name,Value
)Name,Value
pair arguments.
rtwbuild(
generates
subsystem code and builds a binary executable file by using the current
configuration parameter settings of your model. If the selected system target
file creates an S-Function block, the function returns a non-empty block handle
to an autogenerated S-Function wrapper. Before you run the command, you must
open or load the parent model.subsystem
)
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.
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