When is the 'ModelReferenceVersionMismatchMessage' Simulink model parameter editable?
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282686/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282687/image.png)
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?
0 个评论
采纳的回答
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
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!