User`s guide
Working with Scope Objects
2-9
2 Alternatively, you can type
set(sc1,'triggermode', 'signal')
or type
sc1.set('triggermode', 'signal')
Note that you cannot use dot notation to set vector object properties. To assign
properties to a vector of scopes, use the
set method. For example, assuming you
have a variable
sc12 for two scopes, 1 and 2, set the NumSamples property of
these scopes to
300:
1 In the MATLAB window, type
set(sc12,'NumSamples',300)
To get a list of the writable properties, type set(scope_object).
Note Method names are case sensitive. You must type the entire name.
Property names are not case sensitive. You do not need to type the entire
name as long as the characters you do type are unique for the property.
Getting the Value of a Scope Property
You can list a property value in the MATLAB window or assign that value to a
MATLAB variable. With xPC Target you can use either a function syntax or an
object property syntax.
The syntax
get(scope_object_vector, property_name) can be replaced by
scope_object_vector(index_vector).property_name
For example, to assign the start time from the scope object sc1,
1 In the MATLAB window, type
beginrun = sc1.starttime