Main Content

Advisor.loadExclusion

Load exclusions from exclusion file

Since R2021a

Description

Advisor.loadExclusion(modelName,path) loads the exclusions from the exclusion file at the specified path.

Input Arguments

collapse all

Model to load exclusions into, specified as a character vector or string array.

Data Types: char | string

Path to an exclusion file, specified as a character vector or string array.

Example: Advisor.loadExclusion('mymodel', 'C:\Documents\mymodel_exclusion.xml')

Data Types: char | string

Alternative Functionality

Model Advisor Exclusion Editor

You can also load exclusions by using the Model Advisor Exclusion Editor. To open the Model Advisor Exclusion Editor for a model right-click in the Simulink® canvas or right-click an entity, and select Model Advisor > Open Model Advisor Exclusion Editor. In the Model Advisor Exclusion Editor dialog box, click the Open exclusions file button and open the exclusion file that you want to use with your model. For more information, see Exclude Blocks from Model Advisor Check Analysis.

Version History

Introduced in R2021a