User`s guide
addscope
14-9
14addscope
Purpose Create one or more scopes
Syntax MATLAB command line
Create a scope and scope object without assigning to a MATLAB variable.
addscope(target_object, scope_type, scope_number)
target_object.addscope(scope_type, scope_number)
Create a scope, scope object, and assign to a MATLAB variable
scope_object = addscope(target_object, scope_type, scope_number)
scope_object = target_object.addscope(scope_type, scope_number)
Target PC command line — When you are using this command on the target
PC, you can only add a scope of type
target.
addscope
addscope scope_number
Arguments
Description addscope creates a scope of the specified type 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. xPC Target supports 10 scopes of scopes of type target and host, 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.
target_object
Name of a target object. The default target name
is
tg.
scope_type
Values are 'host', 'target', or 'file'. This
argument is optional with
host as the default
value.
scope_number
Vector of new scope indices. This argument is
optional. 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.