Hi, I have defined some unit of measure in bus objects, using the bus editor, but whenever I run a simulation I get the following message: Warning: The units 'm3' specified on block 'Controls/Engine Control Module/ECM model variant/ Internal ECM' are not defined in the Simulink unit database. Investigate 52 similar inconsistencies on Model Advisor Report. If you cannot use a unit that exists in the database, consider suppressing all units inconsistency warnings by setting the configuration parameter
Neeta Dsouza answered .
2025-11-20
To suppress the units inconsistency warnings in MATLAB R2017b, you can set the UnitsInconsistencyMsg parameter to 'none'. Here are the steps to do this:
Open your model in Simulink.
Go to Simulation > Model Configuration Parameters (or use the shortcut Ctrl + E).
In the Model Configuration Parameters dialog, go to the Diagnostics tab.
Expand the Advanced parameters section (if not already expanded).
Find the parameter UnitsInconsistencyMsg and set its value to `'none''.
Save and run your simulation.
Alternatively, you can set the parameter programmatically using the MATLAB command window:
set_param('your_model_name', 'UnitsInconsistencyMsg', 'none');
Replace 'your_model_name' with the actual name of your Simulink model.
By setting the UnitsInconsistencyMsg parameter to 'none', you will suppress the warnings about units inconsistencies in your model. This is useful when you need to define units in a specific way for compatibility with other software, even if they are not recognized by Simulink's unit database.