db_0110: Block parameters
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
Sub ID a
Block parameters shall not be used to describe:
Data type conversion
Selection of rows or columns
Sub ID a:
Operation expressions, data type conversion, or row or column selection become a magic number in generated code, which makes consistency between the model and code difficult to maintain. Adjusting parameters also becomes difficult.
Describing the calculation formula within the block decreases readability.
The result of executing a MATLAB command is reflected in the code, which makes consistency between the model and code difficult to maintain.
Model Advisor check: Check usage of tunable parameters in blocks (Simulink Check)
Introduced in R2020a