User`s guide

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.