User`s guide

Parameter Tuning and Inlining Pa rameters
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.
You have parameters you would like to save for reuse. See
- “Parameter Tuning with the MATLAB Interface” o n page 3-70
- “Parameter Tuning with Simulink External Mode” on page 3-73
- “Parameter Tuning with a Web Browser” o n page 3-76
Saving the Current Set of Target Application Parameters
To save a set of parameters to a target application, use the savepara mset
method. The targ et application can be stopped or running.
1 Identify the set of parameter values you want to save.
2 Selectadescriptivefilenametocontainthesevalues.Forexample,usethe
model name in the filename. You can only load parameter values to the
same target application from which you saved the parameter values.
3 In the MATLAB window, type either
tg.saveparamset('xpc_osc4_param1')
or
saveparamset(tg,'xpc_osc4_param1')
The xPC Target s oftw are creates a file n amed xpcos c4_param1 in the
current folder of the target PC, for example,
C:\xpcosc4_param1.
For a description of how to restore parameter values to a target application,
see “Loading Saved Pa rameters to a TargetApplication”onpage3-78. Fora
description of how to list the parameters and values stored in the param eter
file, se e “Listing the Values of the Parameters Stored in a File” on page 3-78.
3-77