Advisor.authoring.generateBlockConstraintsDataFile
(Not recommended) Generate XML data file for custom check for block constraints
Advisor.authoring.generateBlockConstraintsDataFile
is not
recommended. Use Advisor.authoring.createBlockConstraintCheck
instead.
For more information, see Define Model Advisor Checks for Supported and Unsupported Blocks and Parameters.
Description
Advisor.authoring.generateBlockConstraintsDataFile(
generates an XML data file named dataFile
,
'constraints',constraintslist
)dataFile
. This data file
specifies the constraints that a custom check contains. The data file uses tagging
to specify the constraint information. When you create a custom check, you use the
data file.
Define constraint objects in the base workspace and then pass these objects as
inputs to this function. These constraints may be root constraints and prerequisites
to root constraints. You can also define a composite constraint. If you specify
multiple root constraints and no composite constraint,
Simulink implements a composite constraint with a
CompositeOperator
of and
.