User`s guide

Target PC Command Line Interface
2-21
Scope Object Methods
When using the target PC command line interface, you use scope object
methods to start a scope, and add signal traces. Notice the methods
addscope
and
remscope are target object methods on the host PC, and notice the
difference between a signal index (0, 1, . . .) and a signal name (S0, S1, . . .)
The following table lists the syntax for the target commands that you can use
on the target PC. The MATLAB equivalent syntax is shown in the right
column. The target object name
tg and the scope object name sc is used as an
example for the MATLAB methods.
parameter_name (P0, P1, . . .)
parameter_name = number
tg.parameter_name
tg.parameter_name = number
signal_name (S0, S1, . . .) tg.S#
Target PC MATLAB
addscope scope_index
addscope
tg.addscope(scope_index)
tg.addscope
remscope scope_index
remscope ’all’
tg.remscope(scope_index)
tg.remscope
startscope scope_index sc.start
or +sc
stopscope scope_index sc.stop
or -sc
addsignal scope_index =
signal_index1, signal_index2,
. . .
sc.addsignal(signal_index_vect
or)
remsignal scope_index =
signal_index1, signal_index2,
. . .
sc.remsignal(signal_index_vect
or)
Target PC MATLAB