User`s guide
15 Frequently Asked Questions
xpctest: Test 3 Fails
First, follow the procedure in “Test 3, Reboot Target Using Direct Call” in the
xPC Target Getting Started Guide.
If you need m ore help with Test 3, check the following:
• Did you get the following error?
- ReadFile Err or: 6
Older xPC Target releases might receive this error. This message might
occur if the host PC initiates communication with the target PC while the
target PC is rebooting, but the kernel on the target PC has not yet loaded.
As a workaround, run
xpctest with the noreboot o ption. For example,
xpctest('-noreboot')
This command runs the test without trying to reboot the target PC. It
displays the following message:
### Test 3, Software reboot the target PC: ... SKIPPED
• If you directly or indirectly modify the xpcosc demo mode that is supplied
with the pro duct, Test 3 is likely to fail. To pass this test, restore the
original
xpcosc demo model, using one of the following methods:
- (Preferred) Download a new copy of the model from the MathWorks FTP
site (
ftp://ftp.mathworks.com/pub/tech-support/xpcosc_model/).
Overwrite the old
xpcosc model with this new one in the folder
matlabroot\toolbox\rtw\targets\xpc\xpcdemos
- Recreate the original model.
- Reinstall the software.
Note Do not modify a ny of the files that are installed with the xPC Target
software. If you want to modify one of these files, copy the file and modify
the copy.
15-14