sschdl.updateRuntimeParameters
Description
sschdl.updateRuntimeParameters(
generates an updated tunable run-time parameter data file for the specified model
modelName
,SSPPath
,TPPath
,dataFileName
)modelName
. This allows you to update the parameter values in the
generated HDL implementation model or SLRT model with a new set of parameters without
rerunning the synthesis. Use this function after generating the HDL implementation model and
associated data files through the Simscape HDL Workflow Advisor.
The function generates a data file based on the parameter values set in the model
modelName
. Update parameter values in the model to the desired
configuration before executing the function. The newly created data file in the working
directory is saved as dataFileName.mat
.
You can then load the new data file dataFileName.mat
in place of the
original data file tunableParameters.mat
from the generated
sschdl
folder to update your Simulink or SLRT model parameter values.
Make sure that the desired file in the Simulink or SLRT model is updated. Open the Simulink
or SLRT model. Then, on the Modeling tab, select Model Settings > Model Properties. On the Callbacks tab, in the Model
callback pane, select InitFcn
and replace the
tunableParameter.mat
file with the newly generated
dataFileName.mat
file.
Examples
Input Arguments
Limitations
This function supports parameter tuning of Simscape™ run-time parameter values or
Simulink.Parameter
objects. Functional changes to the model are not supported. If there is any functional change to the original Simscape model, MATLAB® encounters error and displays an error message.
Version History
Introduced in R2024a
See Also
sschdladvisor
| sschdl.generateOptimizedModel
| simscape.findNonlinearBlocks
(Simscape) | About Simscape Run-Time Parameters (Simscape)