Main Content

Advisor.saveExclusion

Save exclusions to model or exclusion file

Since R2021a

Description

Advisor.saveExclusion(modelname) saves the exclusions to the default option as mentioned in model parameter MAModelFilterFile.

Advisor.saveExclusion(modelname,'filePath','') (third argument empty) saves the exclusions inside the model.

Advisor.saveExclusion(modelname,'filePath',path) saves the exclusions to the selected file path.

Input Arguments

collapse all

Model name to save all the exclusions, specified as a character vector or string.

Example: Advisor.saveExclusion('mymodel')

Data Types: char | string

Path to save the new exclusions.xml file, specified as a character vector or string.

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

Data Types: char | string

Alternative Functionality

Model Advisor Exclusion Editor

You can also save 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 down arrow next to the Save icon to view the save options. You can save the exclusions in the model or in a separate file. For more information, see Exclude Blocks from Model Advisor Check Analysis.

Version History

Introduced in R2021a