In Simscape, the process to make parameters run-time tunable differs from base Simulink.
By default, Simscape computes parameter values at compile-time rather than at run-time. You can change this preference option from MATLAB Preferences:
- Open the MATLAB Preferences Dialog.
- Select Simscape from the left pane.
- Select the "Show run-time parameter settings" option.
Now, tunable parameters in your Simscape blocks will have a dropdown next to their values to select either "run-time" or "compile-time". For tunability in Fast Restart or Rapid Accelerator, set the option to "run-time".
For more information about Simscape Run-Time Parameters, refer to the following documentation pages. To access the release-specific documentation, execute the following commands in the MATLAB R2020a command window:
For information about Simscape Run-Time Parameters:
>> web(fullfile(docroot, 'physmod/simscape/ug/about-simscape-run-time-parameters.html'))
To set the run-time parameters visibility preference:
>> web(fullfile(docroot, 'physmod/simscape/ug/set-the-run-time-parameters-visibility-preference.html'))
Please follow the link below to search for the required information regarding the current release: