User`s guide

getscope
6-26
6getscope
Purpose Gets a scope object pointing to a scope already defined in the kernel
Syntax MATLAB command line
scope _object_vector = getscope(target_object, scope_index)
scope_object_vector = target_object.getscope(scope_index)
Arguments target_object
Description Method of a target object. Returns a scope object vector. If you try to get an
nonexistent scope, the result is an error. The list of existing scopes may be
retrieved using the method get(target_object, ’scopes’) or target_object.scopes.
Examples If your Simulink model has an xPC Target scope block, a scope of type target is
created at the time the target application is downloaded to the target PC. To
change the number of samples, you need to create a scope object and then
change the scope object property NumSamples.
sc1 = getscope(tg,1) or sc1 = tg.getscope(1)
sc1.NumSample = 500
Name or a target object.
scope_index_vector Vector of existing scope indices listed in the target
property Scopes. The vector may have only one
element.
scope_object_vector MATLAB variable for a new scope object vector.
The vector many have only one scope object.
getscope
target
object
target
application
Host PC
Target PC
scope
kernel
Scope engine
kernel
Scope engine
target
object
target
application
Host PC
Target PC
scope
scope
object