MATLAB XPC TARGET 4 - API GUIDE Uživatelská příručka Strana 25

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 372
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 24
Working with Scope Objects
2-7
Working with Scope Objects
This topic describes how to work with scope objects using scope object
functions.
“Displaying Scope Object Properties for a Single Scope” on page 2-7
“Displaying Scope Object Properties for All Scopes” on page 2-8
“Setting the Value of a Scope Property” on page 2-8
“Getting the Value of a Scope Property” on page 2-9
“Using the Method Syntax with Scope Objects” on page 2-10
“Acquiring Signal Data with Scopes of Type File” on page 2-11
“Acquiring Gap-Free Data Using Two Scopes” on page 2-16
“Acquiring Gap-Free Data Using Two Scopes” on page 2-16
See Chapter 14, “Function Reference,” for a reference of the scope object
functions.
Displaying Scope Object Properties for a Single
Scope
To list the properties of a single scope object, sc1,
1 In the MATLAB window, type
sc1 = getscope(tg,1) or sc1 = tg.getscope(1)
MATLAB creates the scope object sc1 from a previously created scope.
2 Type
sc1
The current scope properties are uploaded to the host PC, and then
MATLAB displays a list of the scope object properties with the updated
values. Because
sc1 is a vector with a single element, you could also type
sc1(1) or sc1([1]).
Note Only scopes with type host store data in the properties
scope_object.Time and scope_object.Data.
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 371 372

Komentáře k této Příručce

Žádné komentáře