User`s guide

getscope
Purpose Scope object pointing to scope defined in kernel
Syntax MATLAB command line
scope_object_vector = getscope(target_object, scope_number)
scope_object = target_object.getscope(scope_number)
Arguments
target_object
Name of a target object.
scope_number_vector
Vector of existing scope indices listed in the
target object property
Scopes. The vector can
have only one e lement.
scope_object
MATLAB v ariable for a new scope object
vector. The vector can have only one scope
object.
Description getscope returns a scope object vector. If you try to get a nonexistent
scope, the result is an error. You can retrieve the list of existing
scopes 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
18-62