Why am I unable to save changes to my Simulink 5.0 (R13) model which contains Dials & Gauges 1.1.2 (R13) blocks?

2 次查看(过去 30 天)
I have a model which has some blocks from the Dials & Gauges blockset version 1.1.2 (R13). I then make changes to these block's parameters and save the model. When I close my model then reopen it, my changes are not there. The Dials & Gauges blocks have reverted back to their original settings.

采纳的回答

MathWorks Support Team
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This is a bug in the Dials & Gauges blockset version 1.1.2 (R13).
This is happening because the Dials & Gauges blockset library has the MaskSelfModifiable set to 'on'. To fix this, you can copy and paste the following lines of code into the MATLAB R13 command window. This code will set this parameter to 'off':
load_system('dnglibv1')
set_param('dnglibv1','Lock','off')
set_param('dnglibv1/ActiveX Control','MaskSelfModifiable','off')
save_system('dnglibv1')
close_system('dnglibv1')
You will now be able to make changes to your model and have them saved.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Automotive 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by