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
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 may prevent the Parameter Quantization Advisor app from being opened.
The Parameter Quantization Advisor app reports information for these quantization issues:
Diagnostics set to
none
are also reported in the app.You can use these configuration parameters to filter parameter overflow and precision loss diagnostics:
Parameter overflow and precision loss diagnostics that are suppressed or filtered out by these parameters by default hidden in the Parameter Quantization Advisor app. You can use the Parameters Without Diagnostics button to display these diagnostics in the app.
The Parameter Quantization Advisor reports details on quantization issues for tunable and nontunable parameters that experience quantization loss.
A hierarchical tree of parameters in the model that have quantization issues is displayed in the Parameter Explorer. You can enter a string to search for a particular element within this tree. Select the parameter you would like to inspect to view additional details.
The Parameter Explorer tree hierarchy displays nodes only for parameters that have quantization loss. Parameters that are lossless are not displayed.
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)