xPC Target    

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 that 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 are used as an example for the MATLAB methods.

Target PC Command
Description and Syntax
MATLAB Equivalent
addscope
addscope scope_index
addscope
tg.addscope(scope_index)
tg.addscope

remscope
remscope scope_index
remscope all
tg.remscope(scope_index)
tg.remscope

startscope
startscope scope_index
sc.start or +sc
stopscope
stopscope scope_index
sc.stop or -sc
addsignal
addsignal scope_index = signal_index1, signal_index2, . . .
sc.addsignal(signal_
index_vector
)
remsignal
remsignal scope_index = signal_index1, signal_index2, . . .
sc.remsignal(signal_
index_vector
)
viewmode
Zoom in to one scope, or zoom out to all scopes.
Syntax: viewmode scope_index or left-click the scope window
viewmode 'all' or right-click any scope window
Press function key for scope, and then press V to toggle viewmode

ylimit
ylimit scope_index
ylimit scope_index = auto
ylimit scope_index = num1, num2

grid
grid scope_index on
grid
scope_index off


  Target Object Properties Scope Object Properties