Main Content

Model Advisor configuration file

Specify Model Advisor configuration file for model

Since R2022a

Model Configuration Pane: Model Advisor

Description

Specify a Model Advisor configuration file for the model.

Settings

"" (default) | string

Model Advisor can use a configuration file to determine which Model Advisor and edit-time checks to run. For information on how to create your own custom Model Advisor configuration files, see Use Model Advisor Configuration Editor to Customize Model Advisor (Simulink Check).

You can specify the Model Advisor configuration file by using one of these approaches:

  • Use the Model Advisor. In the Model Advisor, in the Configure section, click Load > Associate Configuration to Model. When you click Associate Configuration to Model, the Model Advisor opens the Configuration Parameters for your model and sets the configuration parameter ModelAdvisorConfigurationFile to the full file path of the current configuration file. Click OK to accept the current configuration file as the configuration file for your model.

  • Enter the name of your Model Advisor configuration file in this field.

  • Specify a configuration at the command line by using the function ModelAdvisor.setModelConfiguration (Simulink Check).

Note

The parameter ModelAdvisorConfigurationFile does not exist by default.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ModelAdvisorConfigurationFile
Type: string
Value: full file path for Model Advisor configuration file (JSON) saved with the Model Advisor Configuration Editor in R2022a release or later
Default: ""

Version History

Introduced in R2022a