User`s guide

2 Building an Application
2-14
A high-level M-file command controls the Real-Time Workshop build process.
By default, Real-Time Workshop issues the command
make_rtw with
appropriate options for most targets. You can customize this command by
editing the contents of the
Make command field in the Build process section
of the
Real-Time Workshop pane of the Configuration Parameters dialog.
Do not issue the
make_rtw command from the MATLAB Command Window.
Use of that command in the Command Window is unpredictable and depends
on conditions such as whether the model is stand-alone, you have multiple
models open, a different make command has been specified, or the model
contains Model blocks.
Although the command may work for a stand-alone model, use of the
make_rtw command at the command line can be error-prone. For example, if
you have multiple models open, you need to make sure
gcs is the model you
want to build. Also, some target environments supply a
Make command in
the
Configuration Parameters dialog that is not make_rtw. Finally, models
containing Model blocks do not build properly using
make_rtw.
To build (or generate code for) a model as currently configured from the
MATLAB Command Window, use one of the following
rtwbuild commands.
rtwbuild modelname
rtwbuild('modelname')