Parameter Configuration for Analysis
Parameter configuration allows Simulink®
Design Verifier™ to assess the impact of parameter ranges along with the default value
during the analysis. Consider an example model that illustrates the impact of parameter
configuration on analysis outcomes. The model features a switch block with its control
port conditioned on > 0
and is influenced by a calibration parameter
K
that has a value of 0
in the base workspace.
The table below showcases how the analysis results vary with parameter configurations:
Parameter K with value
0 in base workspace | No Parameter Configuration specified | Parameter Configuration specified with
K in interval
[-1,1] |
Analysis result |
|
|
Test cases | Parameters retain same value as specified in base workspace for all test cases. | Parameter values are reported along with input values, and they may vary from one test case to another. |
The figure below shows the three basic steps involved in parameter configuration:
Select Parameters: Parameters are defined using
Simulink.Parameter
variables for calibration. You have the option to either select the parameters manually to configure or let Simulink Design Verifier automatically detect and configure these parameters. For more information, see Ways to Configure Parameter Configuration.Specify Ranges: You can define ranges (maximum or minimum values) for the selected parameters. For a
Simulink.Parameter
variable, the default range is determined by the maximum or minimum values.Run Analysis: The Simulink Design Verifier analysis uses these values to produce the results. The generated test cases include the parameter values in addition to the necessary inputs to achieve the desired coverage.
Limitations for Parameter Configurations
The following table illustrates the cases where Simulink Design Verifier does not support specifying the parameter configuration:
Parameters Based on | Limitations |
Location | Simulink Design Verifier does not support parameter configuration for parameters that are:
|
Data types | Simulink Design Verifier does not support parameter configuration for parameters that are:
|
Block types | Simulink Design Verifier does not support parameter configuration for parameters from these blocks:
|
See Also
Parameter Configuration Workflow