Advisor.addExclusion
Add exclusions to model or exclusion file
Syntax
Description
adds an exclusion to an
entity, such as a
block, subsystem, or Stateflow® element, in the model exclusionInfo = Advisor.addExclusion(modelName,filterType,entityIdentifier)modelName , and returns an object
exclusionInfo that contains information about the exclusion. The type
of exclusion is specified by the filterType argument. The entity is
specified by the entityIdentifier argument.
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, you can use the exclusionInfo = Advisor.addExclusion(___,Name,Value)checks argument to
exclude an entity from specific Model Advisor checks or the rationale
argument to provide a reason for the exclusion.
Note
If you add an exclusion, you can save time during model development and verification by limiting the scope of the analysis that Model Advisor has to perform on your model.
Examples
Input Arguments
Name-Value Arguments
Output 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.


