User`s guide

25 Create Model Advisor Checks
25-28
addModelAdvisorCheckFcn (@checkDefinitionFcn)
Registers the checks that you define in checkDefinitionFcn to the By Product
folder of the Model Advisor.
The checkDefinitionFcn argument is a handle to the function that defines
custom checks that you want to add to the Model Advisor as instances of the
ModelAdvisor.Check class (see “Define Custom Checks” on page 25-30).
addModelAdvisorProcessFcn (@modelAdvisorProcessFcn)
Registers the process callback function for the Model Advisor checks (see “Define
Startup and Post-Execution Actions Using Process Callback Functions” on page
25-28).
Caution The Model Advisor registers only one process callback function. If you have
more than one sl_customization.m file on your MATLAB path, the Model Advisor
registers the process callback function from the sl_customization.m file that has
the highest priority.
If the By Product folder is not displayed in the Model Advisor window, select Show By
Product Folder from the Settings > Preferences dialog box.
Note: The @ sign defines a function handle that MATLAB calls. For more information,
see “At — @” in the MATLAB documentation.
For a code example, see “Register Custom Checks and Process Callbacks” on page
25-52.
Define Startup and Post-Execution Actions Using Process Callback
Functions
The process callback function is an optional function that you use to configure the Model
Advisor and process check results at run time. The process callback function specifies
actions that the software performs at different stages of Model Advisor execution:
configure stage: The Model Advisor executes configure actions at startup, after
checks and tasks have been initialized. At this stage, you can customize how the
Model Advisor constructs lists of checks and tasks by modifying Visible, Enable,