Main Content
Advisor.authoring.PositiveBlockTypeConstraint Class
Namespace: Advisor.authoring
Superclasses:
Create a Model Advisor constraint to check for supported block types
Description
Instances of Advisor.authoring.PositiveBlockTypeConstraint
class
define the only blocks that a model can contain.
Construction
constraint = Advisor.authoring.PositiveBlockTypeConstraint()
creates
an instance of this class.
Properties
Examples
Specify Supported Block Types
These commands specify that a model contain only Inport, Outport, and Gain blocks and Constant blocks that have a specified mask:
c1=Advisor.authoring.PositiveBlockTypeConstraint; c1.ID='ID_1'; s1=struct('BlockType','Inport','MaskType',''); s2=struct('BlockType','Outport','MaskType',''); s3=struct('BlockType','Gain','MaskType',''); s4=struct('BlockType','Constant','MaskType','Stateflow'); c1.SupportedBlockTypes={s1;s2;s3;s4;};
Version History
Introduced in R2018a