User`s guide
Scope Object
7-3
Scope Object
xPC Target uses scopes and scope objects as an alternative to using Simulink
scopes and external mode. Understanding the structure of scope objects will
help you to develop a mental model of the xPC Target software environment.
This section includes the following topics:
•
“What is a Scope Object?” — Definition, and ways to create scope objects
•
“Scope Object Properties” — List of properties with definitions
•
“Scope Object Methods” — List of methods with definitions
What is a Scope Object?
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.
Scope Object Properties
Scope object properties let you select signals to acquire, set triggering modes,
and access signal information from the target application. You can view and
change these properties using scope object methods