User`s guide

Create Check for Model Configuration Parameters
25-21
6
From the model window, select Analysis > Model Advisor > Model Advisor to
open the Model Advisor.
7
In the left pane, select By Task > Example: My Group > Example: Check
model configuration parameters. In the right pane, Data File is set to
ex_DataFile.xml. To create ex_DataFile.xml, see “Create Data File for
Diagnostics Pane Configuration Parameter Check” on page 25-17.
8
Click Run This Check. The Model Advisor check warns that the configuration
parameters are not set to the values specified in ex_DataFile.xml.
For configuration parameters with positive constraint tagging
(PositiveModelParameterConstraint), the recommended values are obtained
from the value tagging. For configuration parameters with negative constraint
tagging (NegativeModelParameterConstraint), the values not recommended are
obtained from the value tagging.
Algebraic loop(AlgebraicLoopMsg) - the ex_DataFile.xml tagging does not
specify a fix action for AlgebraicLoopMsg. The subcheck passes only when the
setting is not set to none.
Minimize algebraic loop(ArtificialAlgebraicLoopMsg) - the
ex_DataFile.xml tagging specifies a subcheck with a fix action for
ArtificialAlgebraicLoopMsg that passes only when the setting is error.
The fix action modifies the setting to error.
Block priority violation(BlockPriorityViolationMsg) - the
ex_DataFile.xml tagging specifies a subcheck with a fix action for
BlockPriorityViolationMsg that does not pass when the setting is warning.
The fix action modifies the setting to error.
9
In the Action section of the Model Advisor dialog box, click Modify Settings. Model
Advisor updates the configuration parameters for Block priority violation and
Minimize algebraic loop.
10
Run By Task > Example: My Group > Example: Check model configuration
parameters. The check warns because Algebraic loop is set to none.
11
In the right pane of the Model Advisor window, use the Algebraic loop
(AlgebraicLoopMsg) link to open the Simulation > Model Configuration
Parameters > Diagnostics. Set Algebraic loop to warning or error.
12
Run By Task > Example: My Group > Example: Check model configuration
parameters. The check passes.