User`s guide
Parameter Tuning and Inlining Pa rameters
Parameters =
INDEX VALUE TYPE SIZE
PARAMETER
NAME
BLOCK
NAME
0 1000000 D OUBLE Scalar Gain Gain
1 400 DOUBLE Scalar Gain Gain1
2 1000000 D OUBLE Scalar Gain Gain2
3 0 DOUBLE Scalar
Initial
Condition Integrator
4 0 DOUBLE Scalar Initial
Condition
Integrator1
5 4 DOUBLE Scalar Amplitude Signal
Generator
6 20 DOUBLE Scalar Frequency Signal
Generator
3 Change the gain. For example, to change the Gain1 block, type either
tg.setparam(1,800)
or
setparam(tg,1,800)
As soon as you change parameters, the changed parameters in the target
object are downloaded to the target application. The host PC displays the
following message:
ans =
parIndexVec: 1
OldValues: 400
NewValues: 800
If there is a scope, the plot frame then updates the signals after running
the simulation with the new parameters.
4 Stop the target application. In the MATLAB window, type
3-71