User`s guide

Customization File Overview
25-3
Customization File Overview
A customization file is a MATLAB file that you create and name sl_customization.m.
The sl_customization.m file contains a set of functions for registering and defining
custom checks, tasks, and groups. To set up the sl_customization.m file, follow the
guidelines in this table.
Function Description When Required
sl_customization() Registers custom checks, tasks,
folders, and callbacks with
the Simulink customization
manager at startup (see
“Register Checks and Process
Callbacks” on page 25-27).
Required for customizations to
the Model Advisor.
One or more check definitions Defines custom checks (see
“Define Custom Checks” on
page 25-30).
Required for custom checks and
to add custom checks to the By
Product folder.
If the By Product folder is
not displayed in the Model
Advisor window, select Show
By Product Folder from the
Settings > Preferences dialog
box.
Check callback functions Defines the actions of the
custom checks (see “Create
Callback Functions and
Results” on page 25-37).
Required for custom checks. You
must write one callback function
for each custom check.
One or more calls to check
input parameters
Specifies input parameters
to custom checks (see “Define
Check Input Parameters” on
page 25-34).
Optional.
One or more calls to check list
views
Specifies calls to the Model
Advisor Result Explorer for
custom checks (see “Define
Model Advisor Result Explorer
Views” on page 25-35).
Optional.