When is the 'ModelRefe​renceVersi​onMismatch​Message' Simulink model parameter editable?

조회 수: 3 (최근 30일)
When I open a model's test harness, I receive the following error:
I would like to disable the "ModelReferenceVersionMismatchMessage" parameter, but when I go to the configuration parameters, it's greyed-out and I can't modify it. When I try to edit it from the command line, I also receive errors:
The documentation page for this parameter doesn't give any hints as to when it is possible to actually edit it. How can I edit it?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 4월 9일
Try this
model='sldemo_mdlref_basic';
open_system(model);
get_param(model,'ModelReferenceVersionMismatchMessage')
set_param(model,'ModelReferenceVersionMismatchMessage','warning')
set_param(model,'ModelReferenceVersionMismatchMessage','none')
  댓글 수: 3
Fangjun Jiang
Fangjun Jiang 2020년 4월 20일
Yes. In the .tlc file, you can disable certain configuration parameters. Open the .tlc file to see if you can find the source.
Monika Jaskolka
Monika Jaskolka 2020년 4월 20일
편집: Monika Jaskolka 2020년 4월 20일
Thank you. You're right. I can enable the parameter by modifying the custom .tlc file like this:
slConfigUISetEnabled(hDlg, hSrc, 'ModelReferenceVersionMismatchMessage', 'true');

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by