User`s guide

addscope
14-10
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, or file 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 a scope viewer on the
host or other MATLAB functions.
Scope of type file — Data collected is stored in a file in the target PC file
system. You can then transfer the data to another PC for examination or
plotting.
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, and a scope object is created on
the host PC, 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 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)
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