> The model contains normal simulink blocks, S-functions blocks, and dspace blocks.
According to message "Error: You attempt to build a model containing (7) dSPACE RTI block(s) with a non-RTI System target file.", you select a non-RTI System target file.
If you use dspace blocks, open Configuration Parameters > Code Generation, please.
Then select System target file rtixxxx.tlc dependent on dSAPCE platform which you use.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/997005/image.png)