Main Content

SLSlicerAPI.SLSlicer.removeStartingPoint

Class: SLSlicerAPI.SLSlicer
Package: SLSlicerAPI

Removes the starting point from the model slice

Description

removeStartingPoint(obj,StartingPoint) removes the StartingPoint from the model slice for dependency analysis.

Input Arguments

expand all

Class containing of Model Slicer configuration options.

Block or signal line from which the Model Slicer analysis is started.

Examples

Remove Starting using Blocks Handles

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

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

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

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

Remove Starting using Blocks Paths

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

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

To remove multiple block paths starting point, use cell array, for example:

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

Remove Starting using SID

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

removeStartingPoint(obj, 'sldvSliceClimateControlExample:39')

Remove Starting using LineHs

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

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

Alternatives

To open the Model Slicer manager, in the Simulink toolstrip, select the APPS tab, and click Model Slicer. To remove a block or signal as the starting point, in the model, right-click the block or signal and select Model Slicer > Remove Starting Point.

Introduced in R2015b