MATLAB: Do the links in the Code Generation Report created by Real-Time Workshop not work if I move the directory

absolutecodehyperlinklinkpathrelativesimulink coder

I generated code for my model using Real-Time Workshop and selected the option "Generate HTML Report". Real-Time Workshop creates the report and the links work as expected. I then moved or renamed the directory where my model is located and the links in the report no longer work.

Best Answer

This enhancement has been incorporated in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
The links in the Code Generation Report created by Real-Time Workshop use absolute paths to the target files. By changing the paths you break the links in the report.
To work around this issue, regenerate the code and the Code Generation Report after moving or renaming the directory containing your model. Currently no workarounds allow the report to be in a different directory relative to the model.