Model Naming Restrictions
Simulink model names must be <= 22 characters long. Longer model names will cause a compile error similar to this:
Error (dcc:1173): compiler out of sync. Probably missing ‘;’ or ‘}’
If your model has already been created, there are a few more steps you will need to do to make your model work with the new name:
rename <model-name>.mdl to <new-model-name>.mdl
rename <model-name>_bl.m to <new-model-name>_bl.m
rename <model-name>_units.txt to <new-model-name>_units.txt
open up <new-model-name>.slx (or .mdl) and go to the menu: File > Model Properties > Model Properties > Callbacks
set the value of "PreLoadFcn" to "openecu_make_rtw_hook('model_load', '<new-model-name>')"
set the value of "PostLoadFcn" to "openecu_make_rtw_hook('model_loaded', '<new-model-name>')"