User`s guide

addscope
10 scopes of type target and h o st, and eight scopes of type file, for a
maximum of 28 scopes. If you try to add a scope with the same index as
an existing scope, the result is an error.
A scope acquires data from the target application and displays that data
on the target PC, uploads the data to the host PC, or stores that data in
a file in the target PC file system.
All scopes of type
target, host,orfile run on the target PC.
Scope of type target Data collected is displayed on the targe t screen
and acquisition of the next data package is initiated by the kernel.
Scope of type host —Collectsdataandwaitsforacommandfromthe
host PC for uploading the data. The data is then displayed using a
scope viewer on the host or other MATLAB functions.
Scope of type file Da t a collecte d is stored in a file in the target
PC file system. You can then transfer the data to another PC for
examination or plotting.
Examp
les
Creat
eascopeandscopeobject
sc1 using the method addscope .A
targ
et scope is created on the target PC with an index of 1, and a scope
obje
ct is created on the host PC, assigned to the variable
sc1.The
targ
et object property
Scopes is changed from No scopes defined to 1.
sc1 = addscope(tg,'target',1)
18-4