User`s guide
7 Scope Object Reference
7-10
Note Method names are case-sensitive, but property names are not.
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.property_name
•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
2 Alternately, you could type
beginrun = get(sc1,’starttime’) or sc1.get(’starttime’)
Assignment may also be done using a vector of scope objects, for example
scopetypes = allscopes([1, 2]).type. Notice, the indices are MATLAB vector
indices and not xPC Target scope indices.
To get a list of readable properties, type
scope_object. Without assigning to
a variable, the property values are listed in the MATLAB window.
Note Method names are case-sensitive, but property name are not.