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.

 Accepted Answer

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

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2022b

Community Treasure Hunt

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

Start Hunting!