User`s guide

addscope
6-19
All Scopes of type target or host run on the target PC
Scope of type target - Data collected is displayed on the target screen and
acquisition of the next data package is initiated by the kernel.
Scope of type host - Collects data and waits for a command from the host PC
for uploading the data. The data is then displayed using the host scope GUI
(xpcscope) or other MATLAB functions.
Examples Create a scope and scope object sc1 using the method addscope. A target scope
is created on the target PC with an index of 1, a scope object is created on the
host PC, and it is assigned to the variable
sc1. The target object property
Scopes is changed from
No scopes defined to 1.
sc1 = addscope(tg,’target’,1) or sc1 = tg.addscope(’target’,1)
Create a scope with the method addscope and then to create a scope object,
corresponding to this scope, using the method
getscope. A target scope is
created on the target PC with an index of 1, a scope object is created on the host
PC, but it is not assigned to a variable. The target object property Scopes is
changed from
No scopes defined to 1.
addscope(tg,’target’,1) or tg.addscope(’target’,1)
sc1 = getscope(tg,1) or sc1 = tg.getscope(1)
Create two scopes using a vector of scope objects scvector. Two target scopes
are created on the target PC with a scope index of 1 and 2, two scope objects are
created on the host PC that represent the scopes on the target PC. The target
object property Scopes is changed from
No scopes defined to 1,2.
scvector = addscope(tg, ’target’, [1, 2])
target
object
target
application
Host PC Target PC
kernel
Scope engine
addscope
kernel
Scope engine
target
object
target
application
Host PC
Target PC
scope
scope
object