Before generating codes in Simulink, it's could be better to build the files as the structure as below: ├───generated code ├───Standard_interface ├───Model │ └───Submodel ├───Script A part of a ...