MATLAB XPC TARGET RELEASE NOTES Guide de l'utilisateur Page 33

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 531
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 32
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
Vue de la page 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 530 531

Commentaires sur ces manuels

Pas de commentaire