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) | stringModel 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.
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 |
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
See Also
ModelAdvisor.getModelConfiguration
(Simulink Check) | ModelAdvisor.setDefaultConfiguration
(Simulink Check) | ModelAdvisor.setModelConfiguration
(Simulink Check)
Topics
- Check Model Compliance by Using the Model Advisor (Simulink Check)
- Use Model Advisor Configuration Editor to Customize Model Advisor (Simulink Check)
- Load and Associate a Custom Configuration with a Model (Simulink Check)