User`s guide
12 Troubleshooting
12-8
xpctest: Test 2 Fails. First, follow the procedure described in the “Test 2, Ping
Target System xPC Target Ping” section of the xPC Target getting started
documentation.
If you need more help with Test 2, check the following:
• Use the PC MATLAB command
xpcexplr to check the environment
variables, in particular
Target PC IP address. If Test 1 passes but Test 2
fails, you might have entered an incorrect IP address.
• If you have a TCP/IP connection, make sure you are using a supported
Ethernet card (see “xpctest: Test 1 Fails” on page 12-7).
• For RS-232 connection,
- Use a null modem cable (see the “Hardware for Serial Communication”
section of the Getting Started with xPC Target documentation). If you do
not use a null modem cable for an RS-232 connection, communication
between the host and target PCs will fail. A null modem cable is shipped
with xPC Target.
- If you do have a null modem cable, check the COM ports on the host and
target PC. For example, ensure that the ports are enabled, you have
connected the appropriate COM port, and the COM port matches that
specified for
xpcexplr.
- Ensure that the COM ports on the host and target PCs are enabled in the
BIOS. If they are disabled, Test 2 fails.
xpctest: Test 3 Fails. First, follow the procedure described in the “Test 3, Reboot
Target Using Direct Call” section of the xPC Target getting started
documentation.
If you need more help with Test 3, check the following:
• Did you get the following error?
-
ReadFile Error: 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 option. For example,