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 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.

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_vector)
remsignal scope_index = signal_index1, signal_index2, . . .
sc.remsignal(signal_index_vector)
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 scope_index
ylimit scope_index = auto
ylimit scope_index = num1, num2

grid on
grid off



 Target Object Properties Scope Object Properties