Main Content

addConstraint

Class: SLSlicerAPI.SLSlicer
Package: SLSlicerAPI

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

Description

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'};

Alternatives

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.

Version History

Introduced in R2015b