User`s guide
2 Targets and Scopes in the MATLAB
®
Interface
Working with Tar get Objects
In this section...
“Accessing Help f or Target Objects” on page 2-2
“Creating Target Objects” on page 2-2
“Deleting Target Objects” on page 2-3
“Displaying Target Object Properties” on page 2-4
“Setting Target Object Properties from the Host PC” on page 2-4
“Getting the Value of a Target Object Property” on page 2-5
“Using the Method Syntax with Target Objects” on page 2-6
Accessing Help for Target Objects
See “Function Reference” and “Functions” for a reference of the target object
functions.
The target application object methods allow you to control a target application
on the target PC from the host PC. You enter target application object
methods in the MATLA B window on the host PC or use MATLA B code scripts.
To access the help for these m ethods, use the syntax
help xpctarget.xpc/method_name
If you want to control the target application from the target PC, use target PC
commands. See Chapter 8, “Using the Target PC Command-Line Interface”.
Creating Target Objects
To create a target object ,performthefollowing
1 Build a target application. the xPC Target software creates a target object
during the build process.
2 To create a single target object, or to create multiple target objects in your
system, use the target object constructor function
xpc (see xpctarget.xpc)
as follows. For example, the following creates a target object connected
2-2