Advisor.addExclusion
Syntax
Description
Advisor.addExclusion(
adds an exclusion to an
entity, like a
block, subsystem, or Stateflow® element, in the model modelName
,filterType
,entityIdentifier
)modelName
. The type of exclusion is
specified by the filterType
argument. The entity is specified by the
entityIdentifier
argument.
If you add an exclusion, you can save time during model development and verification because you limit the scope of the analysis that Model Advisor has to perform on your model.
Advisor.addExclusion(___,
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, you can use the Name,Value
)checks
argument to
exclude an entity from specific Model Advisor checks or the rationale
argument to provide a reason for the exclusion.
Examples
Input Arguments
Alternative Functionality
Model Advisor Exclusion Editor
You can also add exclusions from the Simulink canvas by using the Model Advisor Exclusion Editor. To add an exclusion from the Simulink canvas, right-click an entity, select Model Advisor, and select the menu option for the type of exclusion that you want to add. For more information, see Exclude Blocks from Model Advisor Check Analysis.