Model Advisor configuration file
Description
Specify the Model Advisor configuration file for the model.
Category: Model Advisor
Settings
Default:
""
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).
Tips
The Model Advisor can use a configuration file to determine which Model Advisor and edit-time checks to run.
To create your own custom Model Advisor configuration files, see Use Model Advisor Configuration Editor to Customize Model Advisor (Simulink Check).
Command-Line Information
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:
"" |
Note
The parameter ModelAdvisorConfigurationFile
does not exist
by default.
Use the function
ModelAdvisor.setModelConfiguration
(Simulink Check) to set the model configuration.Use the function
ModelAdvisor.getModelConfiguration
(Simulink Check) to get the model configuration.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |