User`s guide
12 Troubleshooting
12-20
In this case, the host PC waits for about 20 seconds before declaring that a
time-out has occurred. Note that it does not take 20 seconds for every
download. The host PC polls the target PC about once every second, and if a
response is returned, declares success. Only in the case where a download
really fails does it take the full 20 seconds.
If the file
xpcdltimeout.dat exists, it is read once before every download. To
change the time-out value, change the number in this file. Setting the time-out
to
5 is the same as the default. Note also that simply removing the file does not
change the time-out to the default value. xPC Target uses the last value you
entered until you restart MATLAB.
xPC Target Driver Software Issues. If there really is an error in a driver that causes
xPC Target to crash, a time-out occurs and
xpctargetping fails with an error
message. In such an event, you need to reboot the target and reestablish
communication between the host PC and target PC.
To get yourself back up and running,
1 Remove the reference to the problem driver from the model.
2 Reboot the target PC.
3 At the MATLAB command line, issue xpctargetping to reestablish
communications.
4 If the driver with which you are having problems is one provided by The
MathWorks, try to pinpoint the problem area (for example, determine
whether certain settings in the driver block cause problems).
Alternatively, you can exit and restart MATLAB.
Why Is My Requested xPC Target Sample Time Different from the
Measured Sample Time?
You might notice that the sample time you request does not equal the actual
sample time you measure from your model. This difference depends on your
hardware. For xPC Target, your model sample time is as close to your
requested time as the hardware allows.