Error while building Simulink model on xpc target

6 views (last 30 days)
I am using xpc host-target setting for doing some real-time simulations. I transferred all my Simulink models from one PC to another (with the same MATLAB versions) and the models that were previously building on xpc target are now throwing the errors. The error is as follows : Error(s) encountered while building model "Name of the model"
Command window shows the following :
.. C:\DATA folder\D drive\DATA Folder\NICK McGill\NICK McGill\MATLAB Sandbox\tg_test_NI_DAQ_AI_passive_conv_4_2_xpc_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\..\..\VC\vcvarsall.bat" x86 Setting environment for using Microsoft Visual Studio 2010 x86 tools.
\Symantec\Norton was unexpected at this time.
I uninstalled Symantec anti-virus, but still facing the same problem.
My xpctest results are as follows:
### xPC Target v5.5 Test Suite
### Host-Target interface is: TCP/IP (Ethernet)
### Test 1, Ping target PC 'TargetPC1' using system ping: ... OK
### Test 2, Ping target PC 'TargetPC1' using xpctargetping: ... OK
### Test 3, Software reboot the target PC 'TargetPC1': ..... OK
### Test 4, Build and download an xPC Target application using model xpcosc to target PC 'TargetPC1': ... FAILED

Answers (1)

Drew Davis
Drew Davis on 8 Jun 2015
Edited: Drew Davis on 8 Jun 2015
Verify that a supported compiler is being used and that the blocks in the model can be compiled with the given compiler and compiler version. See documentation page below:
Make sure you set up a supported compiler on your development computer using the 'mex - setup' command. Use 'slrtsetCC -setup' ('xpcsetCC -setup') only if you need to specify different compilers for MEX and Simulink Real-Time (xPC).
Also check to see if the windows environment variable PATH is valid.

Community Treasure Hunt

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

Start Hunting!