Main Content

removeExclusionPoint

Class: SLSlicerAPI.SLSlicer
Namespace: SLSlicerAPI

Removes the exclusion point from the model slice

Description

removeExclusionPoint(obj,ExclusionPoint) removes the ExclusionPoint from the model slice for dependency analysis.

Input Arguments

expand all

Class containing the options of Model Slicer configuration.

Specify the slice exclusion point to remove from the model slice. Table summarizes the options for slice exclusion point.

Starting PointDescription

Block handles

Specifies the block handle. To get the block handle, use the getSimulinkBlockHandle command.

Example:

blkH = get_param('sldvSliceClimateControlExample/Out1','Handle');
removeExclusionPoint(obj,blkH);

To remove multiple block handles exclusion point, use cell array, for example:

blkH = {get_param('sldvSliceClimateControlExample/Out1','Handle'),...
        get_param('sldvSliceClimateControlExample/Out2','Handle')};
removeExclusionPoint(obj,blkH);

Block paths

Block path name, specified as a character vector or a cell array of character vectors.

Example:

bPath = {'sldvSliceClimateControlExample/Out1'};
removeExclusionPoint(obj, bPath);

To remove multiple block handles exclusion point, use cell array, for example:

bPath = {'sldvSliceClimateControlExample/Out1',...
'sldvSliceClimateControlExample/Heater/HeaterAct'};
removeExclusionPoint(obj, bPath);

SID

Simulink® Identifier, a unique designation assigned to a Simulink block or model annotation. To get the SID, use the Simulink.ID.getSID command.

Example:

removeExclusionPoint(obj,...
'sldvSliceClimateControlExample:39')

LineHs

Handles of line that connects from the Inport block to the Outport block. To get the Line Handle, use get_param command.

Example:

lh1 = get_param('sldvSliceClimateControlExample/Heater/Heat','LineHandles');
lh2 = get_param('sldvSliceClimateControlExample/Heater','LineHandles');
LineHs = [lh1.Inport(1), lh2.Outport(2)];
removeExclusionPoint(obj,LineHs);

Alternatives

To open the Model Slicer manager, in the Simulink Editor, select the APPS tab, and click Model Slicer. To add the block as the starting point, in the model, right-click the block and select Model Slicer > Remove Exclusion Point.

Version History

Introduced in R2015b