From: Hans-Joachim Schulpin on

If the targets are online and the IP addresses are ok, maybe something
blocks the communication. You should check, whether the Windows
firewall is enabled. If yes, disable it.

If there are other firewalls in the network, open port "22222", which
is used for communication with the targets by default. You can change
the "TCP/IP target port" in xPC Explorer to something else, but you
have to rebuild the boot disk of the target before you can use the new
port.

You can try an "ping" at the Windows command line, too. If this works,
delete the target in xPC Explorer and create it again, Sometimes this
helps.


On Tue, 22 Dec 2009 20:01:20 +0000 (UTC), "Kate J."
<quisquiliae3(a)hotmail.com> wrote:

>Thanks for the reminder, Hans-Joachim... that is one step I often forget, and I did need to make that change.
>
>However, now when I try to build my Target model, I get a different error message:
>
> Error building Real-Time Workshop target for block diagram 'Target_model_UDP_v1'. MATLAB error message:
> Error using ==> callMakeHook at 49
> The call to xpctarget_make_rtw_hook, during the exit hook generated the following error:
> Error using ==> xpcload at 71
> Could not find target
> The build process will terminate as a result.
>
>When I try to connect to my Target PC (by right-clicking on the Target name in xPC Explorer, and selecting Connect), I get the error message,
>
> error using ==> connectTarget at 7
> Connection Failed. Please check your Communication settings.
>
>This error message results from my trying to connect to *any* of the Targets listed in xPC Explorer.
>
>Do you have any idea about what might be causing these 2 errors? There doesn't appear to be anywhere in my Simulink models' settings where I can specify the name of the desired Target PC... is there any way to specify this in my Host model and/or Target model? Thanks!
From: Kate J. on
Thanks for your input, Hans-Joachim and Gordon.

The odd thing about these errors I've been receiving is that I have had many previous instances of successful Host-Target interaction in the past, with different Simulink models; I have been able to successfully ping, and xpctest completes with no errors. I don't believe that the problem is a firewall, as it is just this specific model system (using the UDP blocks) that is causing the problem with Host/Target communication.

I will check into your suggestions to see whether the problem is any or a combination of these factors. Happy holidays! :)