Main Content

refineDeadLogic

Class: SLSlicerAPI.SLSlicer
Namespace: SLSlicerAPI

Updates the model highlighting with dead logic refinement

Description

refineDeadLogic(obj,'ModelName',analysis_time) updates the model highlighting with dead logic refinement

Input Arguments

expand all

Object containing Model Slicer configuration options.

Model or subsystem being analyzed for dead logic.

Amount of time used for dead logic analysis.

Example

  1. 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);

  2. Create a Slicer API object, and add the target outport as a starting point.

    slicerObj = slslicer(model);
    slicerObj.addStartingPoint([model '/Controller/target']);

  3. Observe highlight on model.

    slicerObj.highlight;

  4. Refine Dead Logic for a time period.

    slicerObj.refineDeadLogic(model, 300);

  5. 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