User`s guide

25 Create Model Advisor Checks
25-38
Utility Used for...
find_system Getting handle or path to:
Blocks
Lines
Annotations
When getting the object, you can:
Specify a search depth
Search under masks and libraries
get_param / set_param Getting and setting system and block
parameter values.
inspect Getting object properties. First you must
get a handle to the object.
evalin Working in the base workspace.
“Simulink Identifier” (SID) Identifying Simulink blocks, model
annotations or Stateflow objects. The SID
is a unique number within the model,
assigned by Simulink.
Stateflow API Programmatic access to Stateflow objects.
Simple Check Callback Function
Use a simple check callback function with results formatted using the Result Template
API to indicate whether the model passed or failed the check, or to recommend fixing an
issue. The keyword for this callback function is StyleOne. The check definition requires
this keyword (see “Define Custom Checks” on page 25-30).
The check callback function takes the following arguments.
Argument I/O Type Description
system Input Path to the model or subsystem analyzed by the Model
Advisor.