User`s guide
addscope
6-18
6addscope
Purpose Creates one or more scopes on the target PC
Syntax MATLAB command line
Creating a scope and scope object without assigning to a MATLAB variable.
addscope(target_object, ’scope_type’, new_scope_index)
target_object.addscope(’scope_type’, new_scope_index).
Creating a scope, scope object, and assign to a MATLAB variable.
scope_object = addscope(target_object,’scope_type’,
new_scope_index)
scope_object = target_object.addscope(’target’, new_scope_index)
Target PC command line - When using this command on the target PC, it is
limited to adding a scope of type target.
addscope
addscope new_scope_index
Arguments
Description Method of a target object. Creates a scope on the target PC, a scope object on
the host PC, and updates the target object property
Scopes. This method
returns a scope object vector. If the result is not assigned to a variable, the
scope object properties are listed in the MATLAB window. 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 or uploads the data to the host PC.
target_object Name of a target object.
scope_type Values are ’host’ or ’target’. This argument is
optional with
host as the default value.
new_scope_index Vector of new scope indices. This argument is
optional with the next available integer in the
target object property
Scopes as the default
value.
If you enter a scope index for an existing scope
object, the result is an error.