User`s guide
Parameter Tuning and Inlining Parameters
3-53
Parameter Tuning with a Web Browser
The Parameters pane displays a list of all the tunable parameters in your
model. Row and column indices for vector/matrix parameters are also shown.
After you connect a Web browser to the target PC you can use the
Parameters
page to change parameters in your target application while it is running in real
time:
1 In the left frame, click the Parameters button.
The browser loads the
Parameter List pane into the right frame.
If the parameter is a scalar parameter, the current parameter value is
shown in a box that you can edit.
If the parameter is a vector or matrix, there is a button that takes you to
another page that displays the vector or matrix (in the correct shape) and
enables you to edit the parameter.
2 Enter a new parameter value into one or more of the parameter boxes, and
then click the
Apply button.
The new parameter values are uploaded to the target application.
Saving and Reloading Application Parameters with
MATLAB
After you have a set of target application parameter values that you are
satisfied with, you can save those values to a file on the target PC. You can then
later reload these saved parameter values to the same target application. You
can save parameters from your target application while the target application
is running or between runs. This feature lets you save and restore parameters
in your target application without rebuilding the Simulink model. You save
and restore parameters with the target object methods
saveparamset and
loadparamset.
The procedures assume that
• You have a target application object named
tg.
• You have assigned
tg to the appropriate target PC.
• You have a target application downloaded on the target PC.