User`s guide

26 Create Custom Configurations by Organizing Checks and Folders
26-14
function sl_customization(cm)
The customization manager object includes methods for registering custom checks, tasks,
folders, and process callbacks. Use these methods to register customizations specific to
your application, as described in the sections that follow.
Register Tasks and Folders
The customization manager provides the following methods for registering custom tasks
and folders:
addModelAdvisorTaskFcn (@factorygroupDefinitionFcn)
Registers the tasks that you define in factorygroupDefinitionFcn to the By
Task folder of the Model Advisor.
The factorygroupDefinitionFcn argument is a handle to the function
that defines the checks to add to the Model Advisor as instances of the
ModelAdvisor.FactoryGroup class (see “Define Custom Tasks” on page 26-14).
addModelAdvisorTaskAdvisorFcn (@taskDefinitionFcn)
Registers the tasks and folders that you define in taskDefinitionFcn to the folder
in the Model Advisor that you specify using the ModelAdvisor.Root.publish
method or the ModelAdvisor.Group class.
The taskDefinitionFcn argument is a handle to the function that defines custom
tasks and folders. Simulink adds the checks and folders to the Model Advisor as
instances of the ModelAdvisor.Task or ModelAdvisor.Group classes (see “Define
Custom Tasks” on page 26-14).
Note: The @ sign defines a function handle that MATLAB calls. For more information,
see “At — @” in the MATLAB documentation.
Define Custom Tasks
“Add Check to Custom or Multiple Folders Using Tasks” on page 26-15
“Create Custom Tasks Using MathWorks Checks” on page 26-15
“Display and Enable Tasks” on page 26-15
“Define Where Tasks Appear” on page 26-16