xPC Target | ![]() ![]() |
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
For example to assign the start time from the scope object sc1
:
beginrun = sc1.starttime
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.
![]() | Setting the Value of a Scope Property | Using the Method Syntax with Scope Objects | ![]() |