User`s guide
Define Custom Checks
25-35
must define one instance of this class for each input parameter that you want to add to a
Model Advisor check.
Note: You do not have to create input parameters for every custom check.
For a code example, see “Input Parameter Definition” on page 25-53.
Specify Input Parameter Layout
Specify the layout of input parameters in an input parameter definition. To place input
parameters, use the following methods.
Method Description
ModelAdvisor.Check
setInputParametersLayoutGrid
Specifies the size of the input parameter
grid.
ModelAdvisor.InputParameter
setRowSpan
Specifies the number of rows the parameter
occupies in the Input Parameter layout
grid.
ModelAdvisor.InputParameter
setColSpan
Specifies the number of columns the
parameter occupies in the Input Parameter
layout grid.
For information on using these methods, see the ModelAdvisor.Check and
ModelAdvisor.InputParameter class documentation.
Define Model Advisor Result Explorer Views
A list view provides a way for users to fix check warnings and failures using the Model
Advisor Result Explorer. Creating a list view allows you to :
• Add the Explore Result button to the custom check in the Model Advisor window.
• Provide the information to populate the Model Advisor Result Explorer.
For information on using the Model Advisor Results Explorer, see “Batch-Fix Warnings
or Failures” in the Simulink documentation.
Define list views using the ModelAdvisor.ListViewParameter class inside a custom
check function (see “Define Custom Checks” on page 25-30). You must define one