User`s guide
1 Target and Scope Objects
1-4
A scope object on the host PC represents a scope on the target PC. You use
scope objects to observe the signals from your target application during a
real-time run or analyze the data after the run is finished.
To create a scope object,
• Add an xPC Target scope block to your Simulink model, build the model to
create a scope, and then use the target object method
getscope to create a
scope object.
• Use the target object method
addscope to create a scope, create a scope
object, and assign the scope properties to the scope object.
A scope object has associated properties and methods specific to that object.
The following section describes scope object types.
Scope Object Types
You can create scopes of type target, host, or file. Upon creation, xPC Target
assigns the appropriate scope object data type for the scope type:
•
xpctarget.xpcsctg for scopes of type target
• xpctarget.xpcschost for scopes of type host
• xpctarget.xpcfs for scopes of type file
• xpctarget.xpcsc encompasses the object properties common to all the scope
object data types. xPC Target creates this object if you create multiple scopes
of different types for one model and combine those scopes, for example, into
a scope vector.
Each scope object type has a group of object properties particular to that object
type.
The
xpcsctg scope object of type target has the following object properties:
•
Grid
• Mode
• YLimit