User`s guide
addscope
14-11
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 scope indices of 1 and 2, and 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])
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 index of 4. A scope object is
created on the host PC 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 xPC Target target object methods remscope and getscope.
xPC Target M-file demo scripts listed in “xPC Target Demos” on page 5-8.