You can use the Model Advisor API to create Model Advisor checks. Custom checks provide you with the ability to specify which conditions and configuration settings the Model Advisor reviews. For the workflow, see Define Your Own Custom Model Advisor Checks.
Define Your Own Custom Model Advisor Checks
Create a custom check that specifies a set of conditions and model configuration settings that the Model Advisor reviews.
Review a Model Against Conditions that You Specify With the Model Advisor
Create a simple pass/fail check with no fix action and an informational check.
Fix a Model to Comply with Conditions that You Specify With the Model Advisor
Create a pass/fail check that groups results by block or subsystem and provides a fix action.
Create Model Advisor Check for Model Configuration Parameters
To verify the configuration parameters for your model, create a configuration parameter check.
Define the Compile Option for Custom Model Advisor Checks
To use Model Advisor custom checks to evaluate generated code, specify the compile option for each check.
Exclude Blocks From Custom Checks
This example shows how to exclude blocks from custom checks.
Define Model Advisor Checks for Supported or Unsupported Blocks and Parameters
Create Model Advisor checks that specify block and model parameter constraints.