| Simulink® | ![]() |
slbuild('model')
slbuild('model', 'ModelReferenceSimTarget')
slbuild('model', 'ModelReferenceRTWTarget')
slbuild('model', 'ModelReferenceRTWTargetOnly')
Note Except where noted, this command requires a Real-Time Workshop® license. |
slbuild('model') builds a standalone executable from model, using the model's Real-Time Workshop configuration settings.
Note The following commands honor the setting of the Rebuild options on the Model Referencing pane of the Configuration Parameters dialog for rebuilding the model reference target for this model and its referenced models. |
slbuild('model', 'ModelReferenceSimTarget') builds a model reference simulation target for the model. This command does not require a Real-Time Workshop license.
slbuild('model', 'ModelReferenceRTWTarget') builds model reference simulation and Real-Time Workshop targets for model.
slbuild('model', 'ModelReferenceRTWTargetOnly') builds a model reference RTW target for the model.
If the Rebuild option on the Model Referencing pane of the Configuration Parameters dialog is set to Never, you can use two additional arguments, 'UpdateThisModelReferenceTarget' and 'Buildcond', to specify a rebuild option for building a model reference target for this 'model'. For example,
slbuild('model','ModelReferenceSimTarget', ...
'UpdateThisModelReferenceTarget', Buildcond) conditionally builds the simulation target for this 'model' based on the value of Buildcond.
Note This option does not rebuild model reference targets for models referenced by this model. |
'Buildcond' must be one of the following:
'IfOutOfDateOrStructuralChange'
Causes slbuild to rebuild this model if it detects any changes. This option is equivalent to the If any changes detected rebuild option on the Model Referencing pane of the Configuration Parameters dialog box.
'IfOutOfDate'
Causes slbuild to rebuild this model if it detects any changes in known dependencies of this model. This option is equivalent to the If any changes in known dependencies detected rebuild option on the Model Referencing pane of the Configuration Parameters dialog box.
'Force'
Causes slbuild to always rebuild the model. This option is equivalent to the "Always" rebuild option on the Model Referencing pane of the Configuration Parameters dialog box.
![]() | sint | slCharacterEncoding | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |