필터 지우기
필터 지우기

Error while building Simulink model on xpc target

조회 수: 8 (최근 30일)
RehabRobotics
RehabRobotics 2015년 6월 5일
편집: Drew Davis 2015년 6월 8일
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

답변 (1개)

Drew Davis
Drew Davis 2015년 6월 8일
편집: Drew Davis 2015년 6월 8일
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.

카테고리

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