User`s guide

2 Targets and Scopes in the MATLAB Interface
2-8
For a list of target object properties with a description, see the target function
get (target object) on page 14-37.
Displaying Scope Object Properties for All Scopes
To list the properties of all scope objects associated with the target object tg,
1 In the MATLAB window, type
getscope(tg) or tg.getscope
MATLAB displays a list of all scope objects associated with the target object.
2 Alternatively, type
allscopes = getscope(tg)
or type
allscopes = tg.getscope
The current scope properties are uploaded to the host PC, and then
MATLAB displays a list of all the scope object properties with the updated
values. To list some of the scopes, use the vector index. For example, to list
the first and third scopes, type
allscopes([1,3]).
For a list of target object properties with a description, see the target function
get (target object) on page 14-37
Setting the Value of a Scope Property
With xPC Target you can use either a function syntax or an object property
syntax. The syntax
set(scope_object, property_name,
new_property_value)
can be replaced by
scope_object(index_vector).property_name = new_property_value
For example, to change the trigger mode for the scope object sc1,
1 In the MATLAB window, type
sc1.triggermode = 'signal'