MATLAB: Is there an error in the Real-Time Workshop 6.1 (R14SP1) documentation regarding the location of the RTWDEMOS directory

apicc++ apicapidirectorydocumentationerrorlocationrtwrtwdemossimulink coder

The Real-Time Workshop 6.1 (R14SP1) documentation at
web([docroot,'/toolbox/rtw/rtw_ug/data_ex4.html'])
indicates that the "rtwdemo_capi.mdl" is located in the directory
matlabroot/rtw/rtwdemos
This directory does not exist.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This has been verified as an error in the "Description of C-API Files" section of the Real-Time Workshop 6.1 (R14SP1) documentation. The documentation should read as follows:
Example model_capi.c File
In this section, we discuss the generated C-API structures for a demonstration model, titled rtwdemo_capi.mdl. This model is located in matlabroot/toolbox/rtw/rtwdemos directory.