Main Content


Class: SLSlicerAPI.SLSlicer
Package: SLSlicerAPI

Adds the constraint on Switch or Multiport switch blocks, and Stateflow state or transition


addConstraint(obj,bpath,{1, 1}) adds the constraint from the model slice.

Input Arguments

expand all

Object containing Model Slicer configuration options.

Path or handle to Switch or Multiport Switch or Stateflow State or Transition.

Example: bpath={'sldvSliceClimateControlExample/Refrigeration/On'};


To open the Model Slicer manager, in the Simulink® Editor, select the APPS tab, and click Model Slicer. Invoking Model Slicer on the model automatically activates the model for analysis.

Introduced in R2015b