User`s guide
xpctargetspy
14-119
14xpctargetspy
Purpose Open Real-Time xPC Target Spy window on host PC
Syntax MATLAB Command Line
xpctargetspy(target_object)
Arguments
Description This graphical user interface (GUI) allows you to upload displayed data from
the target PC. By default,
xpctargetspy opens a Real-Time xPC Target Spy
window for the target object,
tg. If you have multiple target PCs in your
system, you can call the
xpctargetspy function for a particular target object,
target_object.
The behavior of this function depends on the value for the environment
property
TargetScope:
• If
TargetScope is enabled, a single graphics screen is uploaded. The screen
is not continually updated because of a higher data volume when a target
graphics card is in VGA mode. You must explicitly request an update. To
manually update the host screen with another target screen, move the
pointer into the
Real-Time xPC Target Spy window and right-click to select
Update xPC Target Spy.
• If
TargetScope is disabled, text output is transferred once every second to
the host and displayed in the window.
Examples To open the Real-Time xPC Target Spy window for a default target PC, tg, in
the MATLAB window, type
xpctargetspy
To open the Real-Time xPC Target Spy window for a target PC, tg1, in the
MATLAB window, type
xpctargetspy(tg1)
target_object
Variable name to reference the target object.