User`s guide
addscope
or
sc1 = tg.addscope('target',1)
Create a scope with the method addscope and then 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, and 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.Twotarget
scopes are created on the target PC with scope indices of 1 and 2, a nd
two scope objects are created on the host PC that represent the scopes
onthetargetPC.Thetargetobjectproperty
Scopes is changed from
No scopes defined to 1,2.
scvector = addscope(tg, 'target', [1, 2])
Create a scope and scope object sc4 of type file using the method
addscope. A file scope is created on the target PC with an i ndex of 4. A
scope object is created on the host P C and is assigned to the variable
sc4. The target object property Scopes is changed from No scopes
defined
to 4.
sc4 = addscope(tg,'file',4) or sc4 = tg.addscope('file',4)
See Also xPCTargettargetobjectmethodsremscope and getscope.
xPC Target demo scripts listed in “xPC Target Demos” on page 6-9.
18-5