refineDeadLogic
Class: SLSlicerAPI.SLSlicer
Namespace: SLSlicerAPI
Updates the model highlighting with dead logic refinement
Description
refineDeadLogic(
updates the model highlighting with dead logic refinementobj
,'ModelName
',analysis_time
)
Input Arguments
Example
Open example
AnalyzeTheDeadLogicExample
. The model to demonstrate refining dead logic is located in this example's folder.openExample('slcheck/AnalyzeTheDeadLogicExample','sldvSlicerdemo_dead_logic'); model= 'sldvSlicerdemo_dead_logic'; open_system(model);
Create a Slicer API object, and add the target outport as a starting point.
slicerObj = slslicer(model); slicerObj.addStartingPoint([model '/Controller/target']);
Observe highlight on model.
slicerObj.highlight;
Refine Dead Logic for a time period.
slicerObj.refineDeadLogic(model, 300);
Observe refined highlight on model
slicerObj.highlight;
Alternatives
To perform dead logic refinement using the Model Slicer UI, open the Model Slicer manager, from the Simulink® Editor, select the APPS > Model Slicer. In the Model Slicer pane, you can perform the refinement using Refine Dead Logic section. For more information, see Refine Dead Logic for Dependency Analysis.
Version History
Introduced in R2015b