User`s guide
16 Target PC Command-Line Inter face Reference
Target PC
Command Description and Syntax MATLAB Equivalent
Syntax: setpar
parameter_index =
floating_point_number
stoptime
Enter a new stop time.
Use
inf to run the target
application until you
manually stop it or reset the
target PC.
Syntax:
stoptime =
floating_point_number
tg.stoptime = number
sampletime
Enter a new sample time.
Syntax:
sampletime =
floating_point_number
tg.sampletime = number
set(tg, 'SampleTime',
number)
P#
Display or change the value
of a block parameter. For
example,
P2 or P2=1 .23e -4.
Syntax:
parameter_name or
parameter_name =
floating_point_number
parameter_name
is P0, P1,
...
tg.getparam(parameter_
index)
tg.setparam(parameter_
index,floating_point_
number)
S#
Display the value of a
signal. For example,
S2.
Syntax:
signal_name
signal_name
is S0, S1, .
..
tg.getsignal(signal_index)
Scope Object Methods
When using the targ et PC co mmand-line interface, you use scope object
methods to start a s cope and add signal traces. Notice that the methods
addscope and remscope are target object methods on the host PC, and notice
16-4