xPC Error:problem in using third party driver when downloading the generated code

4 次查看(过去 30 天)
Dear all: Hello, I have built a driver for PCI-9114( an ADlink board) according to the device manual.When I tested it with a simple model, there came out an error: "The call to xpctarget_make_rtw_hook, during the exit hook generated the following error:Could not find target." It occured in dialog form just right after the download step in host PC.However,there were nothing mistakes presented in the MATLAB command window. The sentences shown in target PC are
"System: download started... System: download finished System: initializing application... System: initializing application finished"
It seems that download and initializing steps work quite well.
If I closed the error dialog and started the target program by typing +tg in the command window, the program would run at the first time step and then error. Also, it could not stop unless I rebooted the target PC.
Does anybody know what causes these errors and any solution/suggestion? Thanks in advance.
notes: 1,the connection between target and host PC has passed all the xpctest items before testing. 2, MATLAB 2010a,xPC version 4.3,TCP/IP communication,VC++ 6.0

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by