User`s guide
xpctargetspy
The behavio r 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 b ecause 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 Upda te xPC Tar get Spy.
• If
TargetScope is disabled, text output is transferred once e very
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 M ATLA B window, type
xpctargetspy
To open the Real-Time xPC Target Spy window for a target PC, tg1, in
the M ATLA B window, type
xpctargetspy(tg1)
If you have multiple target PCs in your system, use xpctarget.xpc to
create the additional target object, tg2, first.
tg2=xpctarget.xpc('RS232', 'COM1', '115200')
Then, use the following syntax.
xpctargetspy(tg2)
18-170