Parameter Quantization Advisor
Open the Parameter Quantization Advisor App
Diagnostic Viewer: From a numeric diagnostic warning or error, under Suggested Actions, click Open.
MATLAB® command prompt: Enter this command.
parameterQuantizationAdvisor('block_path','parameter_name')
Examples
Programmatic Use
Limitations
Parameters with nested structures are not supported.
Structures with
Simulink.Parameter
objects are not supported.
Tips
Update the diagram or simulate the model to view messages in the Diagnostic Viewer.
You can open the Parameter Quantization Advisor app when the Detect underflow, Detect overflow, or Detect precision loss diagnostics error. Other errors that prevent the model from successfully compiling can prevent you from opening the Parameter Quantization Advisor app.
The Parameter Explorer displays a hierarchical tree of parameters in the model that have quantization issues. You can enter a string to search for a particular element in this tree. To view additional details, select the parameter you want to inspect.
The Parameter Explorer tree hierarchy displays nodes only for parameters that have quantization loss. The tree hierarchy does not display parameters that are lossless. When you filter data in the app, the tree hierarchy reflects this filtering.
The Parameter Quantization Advisor app reports information for these quantization issues:
By default, the Parameter Quantization Advisor app hides the parameter overflow and precision loss diagnostics that these parameters suppress or filter out via threshold settings. To display these diagnostics in the app, use the Parameters Without Diagnostics button.
The Parameter Quantization Advisor app reports details on quantization issues for tunable and nontunable parameters that experience quantization loss.
Version History
Introduced in R2022bSee Also
Model Settings
- Detect underflow | Detect overflow | Bits of error threshold | Detect precision loss | Suppress double to single detection | Absolute difference threshold | Relative difference threshold
Functions
fixed.unifiedErrorCalculator.absoluteError
(Fixed-Point Designer) |fixed.unifiedErrorCalculator.bitsOfError
(Fixed-Point Designer) |fixed.unifiedErrorCalculator.relativeAbsoluteError
(Fixed-Point Designer)