Main Content

Advisor.getExclusion

Get exclusion information for a model or a file

Since R2021a

Description

Advisor.getExclusion('modelname') displays the exclusion data of the model.

Advisor.getExclusion('modelname','Name,Value') displays the exclusion data of an entity in the model. This can be a block, a Subsystem or a Stateflow® entity.

Note

If the checks property in the displayed result is .*, then the model object is excluded from all checks.

Input Arguments

collapse all

Model name to display all the exclusions.

Example: Advisor.getExclusion('vdp');

Name-Value Arguments

Example: Advisor.getExclusion('vdp', 'BlockType', 'Integrator');

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can only specify a single Name-Value pair argument.

This is an optional argument of type Filter. You can limit your exclusion results to a particular block in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Block', 'vdp:2');

This is an optional argument of type Filter. You can limit your exclusion results to a particular block type in the model using this argument.

Example: Advisor.getExclusion('vdp', 'BlockType', 'Integrator');

This is an optional argument of type Filter. You can fetch the exclusions applied to a subsystem in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Subsystem', 'vdp:6');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Library in the model using this argument.

Example: Advisor.getExclusion('vdp', 'Library', 'mCustomlib:6');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Subsystem with a specific mask type in the model using this argument.

Example: Advisor.getExclusion('vdp', 'MaskType', 'gearSystem');

This is an optional argument of type Filter. You can fetch the exclusions applied to Stateflow blocks and Subsystems in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:4');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Stateflow chart in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Stateflow State in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Stateflow Transition in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Stateflow Junction in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a graphical function in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a MATLAB function in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Simulink function inside Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Stateflow Truth Table in the model using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

This is an optional argument of type Filter. You can fetch the exclusions applied to a Simulink based state in Stateflow using this argument.

Example: Advisor.getExclusion('sldvdemo_cruise_control', 'Stateflow, 'sldvdemo_cruise_control:8');

Version History

Introduced in R2021a