Why do I receive errors when using the PCI-DAS-TC Thermocouple board with xPC Target 2.01 (R13)?

조회 수: 2 (최근 30일)
Why do I get receive when using the PCI-DAS-TC Thermocouple board with xPC Target 2.01 (R13)?
I get the error message:
Error executing build command:
Error using ==> make_rtw
Could not connect to Ping socket.
when I try to build and download a model with the PCI-DAS-TC board.
In addition, each time I make a change in my model, I have to restart MATLAB and reboot the target computer to get the build to go through.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This is not a bug in xPC Target 2.01 (R13). The error is due to the slow initialization of the PCI-DAS-TC board. The following error:
"cannot connect to ping socket"
means that the host timed out while waiting for the driver to complete initialization.
For this board, this error is not fatal, but the host has to be reset to get communication back up. To do this, you will need execute the following command:
xpctargetping
at the MATLAB prompt after the download times out.
If there really is an error in a driver that causes xPC to crash, then a timeout will also occur, but
xpctargetping
will fail with an error message. In that case, it is necessary to reboot the target. After a timeout and a target reboot, it is necessary to use
xpctargetping
to get communication started again. Exiting MATLAB and restarting it will also restart communication, but is rarely needed.
Alternatively, you may reset the timeout with the command:
xpcgate('settimeout', 20);
before building the model.
Finally, it is worth noting that the default timeout is indeed too short for this board and a simple model with the PCI-DAS-TC feeding a target scope times out on download; executing
xpctargetping
recovers communication, and then
+tg
starts the model just fine.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by