User`s guide
1 Target and Scope Objects
1-2
Target Objects
xPC Target uses a target object (of class xpctarget.xpc) to represent the
target kernel and your target application. Use target object functions to run
and control real-time applications on the target PC with scope objects to collect
signal data.
See Chapter 14, “Function Reference,” for a reference of the target functions.
What Is a Target Object?
An understanding of the target object properties and methods will help you to
control and test your application on the target PC.
A target object on the host PC represents the interface to a target application
and the kernel on the target PC. You use target objects to run and control the
target application.
When you change a target object property on the host PC, information is
exchanged with the target PC and the target application.
To create a target object,
• Build a target application. xPC Target creates a target object during the
build process.
• Use the target object constructor function
xpc. In the MATLAB
®
window,
type
tg = xpctarget.xpc.
Target objects are of class
xpctarget.xpc. A target object has associated
properties and methods specific to that object.