How to run ModelAdvisor by command line???

2 ビュー (過去 30 日間)
galaxy 2020 年 3 月 25 日
Dear all,
I want to run ModelAdvisor and put result in current model advisor as following
ma = Simulink.ModelAdvisor.getModelAdvisor(system); % system is model name
success = runCheck(ma,checkID);
if success
success = setCheckResultStatus(ma,getCheckResultStatus(ma,checkID)); %% Here is error: Error using Simulink.ModelAdvisor/setCheckResultStatus
% setCheckResultStatus method can only be called while executing check callback.
I also use the function after runCheck function, SysResultObjArray is not empty, but error same before
success = runCheck(ma,checkID);
SysResultObjArray =, checkID);
ma.setCheckResultStatus(true); %% Error same before
If I run without runCheck function, SysResultObjArray is empty, so can not to get result.
Do anyone can solve it??
Thank you so much

回答 (0 件)


Community Treasure Hunt

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

Start Hunting!

Translated by