From: Kate J. on
Hi! I'm attempting to get a simple xPC Target system up and running. I have tried 3 different sets of models, including those in the following tutorial:

"How can I share data between my target machine and my host machine in real-time while the target is running in xPC Target?"
http://www.mathworks.com/support/solutions/en/data/1-AB276U/?solution=1-AB276U

However, for each pair of 2 Simulink models running on the Host PC ("Host model") & the Target PC ("Target model"), I get the following behavior:

I can successfully run, Build, and load the Target model onto the Target PC, and this Target model also runs correctly (tg.start command). Then, if I try to Run the Host model, I get the error message:

Error in 'Host_model/From xPC Target 1': Initialization commands cannot be evaluated. MATLAB error message: Error using ==> fromxpcmaskinit at 38
'Target_model' is not loaded on Target PC.

Per the xPC Target setup instructions, I created and configured a Target PC named "TargetPC2", on which my Target model gets loaded. However, it seems that the Host model can't recognize that the Target model is on TargetPC2. (Note that in the Mask Parameters blocks of the To and From xPC Target blocks located in my Host model, I *do* already have Target Name specified as TargetPC2, rather than the default target.)

Mathworks support advised that I should delete TargetPC2 and just use the default one. However, I did spend time configuring TargetPC2 correctly, and if possible, I'd prefer not to delete it if I can avoid it (and, I'm also not sure that using the default target would necessarily work).

Anyone have an idea about what is causing this error above (i.e. that the Host model isn't recognizing the Target model loaded on TargetPC2), and what I might do to solve it, without having to delete my TargetPC2? Thanks in advance!