Main Content
Detect downcast
Description
Select the diagnostic action to take when a parameter downcast occurs during code generation.
Category: Diagnostics
Settings
Default: error
none
Simulink® software takes no action.
warning
Simulink software displays a warning.
error
Simulink software terminates code generation and displays an error message.
Tips
A parameter downcast occurs if the computation of block output required converting the parameter's specified type to a type having a smaller range of values (for example, from
uint32
touint8
).This diagnostic applies only to named tunable parameters (parameters with a non-Auto storage class).
Command-Line Information
Parameter: ParameterDowncastMsg |
Value: 'none' | 'warning' | 'error' |
Default: 'error' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |