Scripted make_rtw fails with "Not enough input arguments"

Has something changed in the implementation of make_rtw since R2015b? We have a script (supplied from TMW) that builds a list of models and used in R2015b that no longer runs on R2017b.
ModelList={
'Model01.slx'
};
clc;
for i=1:numel(ModelList)
name=ModelList(i);
open_system(name);
make_rtw;
close_system(name);
end
This fails with:
Not enough input arguments.
Error in make_rtw (line 13)
validateattributes(buildArgs, {'struct'}, {'scalar'}, mfilename, 'buildArgs');
Error in rx66t_build_all_samples (line 43)
make_rtw;
MEX is configured to use 'MinGW64 Compiler (C).' The help for make_rtw notes it is an internal use only function, so there may be an alternative.

답변 (1개)

Mark McBroom
Mark McBroom 2018년 6월 28일

0 개 추천

I recommend using documented functions rtwbuild() or slbuild() to generate code from your Simulink model.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

질문:

2018년 6월 28일

답변:

2018년 6월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by