User`s guide

Signal Logging
assumes you have created and downloaded the target application for that
model. It also assumes that you have assigned
tg to the appropriate target PC.
1 In the MATLAB window, type
tg=xpc
2 Type
+tg
or
tg.start
or
start(tg)
The target application starts and runs until it reaches the final time set in
the target object property
tg.StopTime.
The outputs are the signals connected to Simulink Outport blocks. The
model
xpcosc.mdl has just one Outport b lock, labeled 1, and there are two
states. This Outport block shows the signals lea ving the bl ocks lab eled
Integrator1 and Signal Generator.
3 Plot the signals from the Outport block and the states. In the MATLAB
window, type
plot(tg.TimeLog,tg.Outputlog)
Values for the logs are uploaded to the host PC from the target application
on the target PC. If you want to upload part of the logs, see the target
object method
getlog.
3-61