'slbuild' function accepts model name, normal subsystem path and handle to model and subsystem. Here reference subsystem cannot be taken as valid input argument. To make rtwbuild work for reference subsystem, open it as a top model (clicking bottom left icon of the block) and specify the corresponding path.
2 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/658518-generate-code-for-single-model-reference-in-other-parent-model#comment_1154528
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/658518-generate-code-for-single-model-reference-in-other-parent-model#comment_1154528
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/658518-generate-code-for-single-model-reference-in-other-parent-model#comment_1161688
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/658518-generate-code-for-single-model-reference-in-other-parent-model#comment_1161688
Sign in to comment.