| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
You can initiate code generation and the build process by using the following options:
Clear the Generate code only option on the Real-Time Workshop pane of the Configuration Parameters dialog box and click Build.
Press Ctrl+B.
Select Tools > Real-Time Workshop > Build Model.
Invoke the rtwbuild command from the MATLAB command line.
Invoke the slbuild command from the MATLAB command line, using one of the following syntax options:
slbuild model
slbuild model 'buildtype'
slbuild('model')
slbuild('model' 'buildtype')For model, specify the name of a model for which you want to build a stand-alone Real-Time Workshop target executable or a model reference target. The buildtype can be one of the following:
ModelReferenceSimTarget builds a model reference simulation target
ModelReferenceRTWTarget builds a model reference simulation and Real-Time Workshop targets
ModelReferenceRTWTargetOnly builds a model reference Real-Time Workshop target
The command initiates the build process with the current model configuration settings. If the model has not been loaded by the Simulink product, slbuild loads it before initiating the build process.
For more information on model referencing, see Creating Model Components.
![]() | Configuring the Build Process | Files and Directories Created by the Build Process | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |