How to interact with model configuration parameters using script

I need to change the settings of detect overflow from error to warning.
I can do so manually by going into model configuration parameters > Set Diagnostics > Data Validity > Detect overflow to warning.
But how can i change it through matlab script ?
I have set of paramters needs to be changed directly through script rather than doing manually.

 采纳的回答

vdp;
get_param('vdp','ParameterOverflowMsg');
set_param('vdp','ParameterOverflowMsg','warning')
web(fullfile(docroot, 'simulink/gui/diagnostics-pane-data-validity.html'))

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Configure and View Diagnostics 的更多信息

产品

版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by