User`s guide
Create Callback Functions and Results
25-37
Create Callback Functions and Results
In this section...
“About Callback Functions” on page 25-37
“Common Utilities for Authoring Checks” on page 25-37
“Simple Check Callback Function” on page 25-38
“Detailed Check Callback Function” on page 25-39
“Check Callback Function with Hyperlinked Results” on page 25-40
“Action Callback Function” on page 25-43
“Format Model Advisor Results” on page 25-44
About Callback Functions
A callback function specifies the actions that the Model Advisor performs on a model or
subsystem, based on the check or action that the user runs. You must create a callback
function for each custom check and action so that the Model Advisor can execute the
function when a user runs the check. There are several types of callback functions:
• “Simple Check Callback Function” on page 25-38
• “Detailed Check Callback Function” on page 25-39
• “Check Callback Function with Hyperlinked Results” on page 25-40
• “Action Callback Function” on page 25-43
All types of callback functions provide one or more return arguments for displaying the
results after executing the check or action. In some cases, return arguments are strings
or cell arrays of strings that support embedded HTML tags for text formatting. Use the
Model Advisor Result Template API to format check results, as described in “Format
Model Advisor Results” on page 25-44. Limit HTML tags to be compatible with
alternate output formats.
Common Utilities for Authoring Checks
When you create a check, there are common Simulink utilities that you can use to make
the check perform different actions. Following is a list of utilities and when to use them.
In the Utility column, click the link for more information about the utility.