User`s guide
Working with Scope Objects
Setting the Value of a Scope Property
With the xPC Target software 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
Forexample,tochangethetriggermodeforthescopeobjectsc1,
• In the MATLAB window, type
sc1.triggermode = 'signal'
• Alternatively, you can type
set(sc1,'triggermode', 'signal')
or
sc1.set('triggermode', 'signal')
Note that you cannot use dot n o tation to set vector object properties. To assign
properties to a vector of scopes, use the
set method. For example, assume
you have a variable
sc12 for two scopes, 1 and 2.TosettheNumSamples
property o f these scopes to 300,
1 In the MATLAB window, type
set(sc12,'NumSamples',300)
To get a list of the writable p roperties, type set(scope_object).
Note Method names a re 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.
2-9