User`s guide

3 Signals and Parameters
Parameter Tuning with the MATLAB Interface
You use the MATLAB functions to change block parameters. W ith these
functions, y ou do not ne ed to set the Simulink interface to external mode, and
you do not need to connect the Simulink interface with the target application.
You can download parameters to the target application while it is running
or be tween runs. This feature lets you change parameters in your target
application w ithout rebuilding the Simulink model.
After you download a target application to the target PC, you can change
block parameters using xPC Target functions. This procedure uses the
Simulink model
xpcosc.mdl as an example, and assumes y ou have created
and downloaded the target application for that model. It also assumes that
you have assigned
tg to the appropriate target PC.
1 In the MATLAB window, type
+tg
or
tg.start
or
start(tg)
The t arget PC displ ays the following message:
System: execution started (sample time: 0.001000)
2 Display a list of parameters. Type e ither
set(tg,'ShowParameters','on')
or
tg.ShowParameters='on'
The latter command displays a list of properties for the target object.
ShowParameters = on
3-70