필터 지우기
필터 지우기

Error while compiling SIMULINK code for dSpace ControlDesk..

조회 수: 23 (최근 30일)
Vishwanathan
Vishwanathan 2012년 12월 10일
편집: Ken Loveday 2022년 11월 1일
Hello,
I have the SIMULINK model and I use dSpace 1401 Microautobox. Whenever I try to compile the code, I have been getting the same error. I have copied the error below.
LINKING APPLICATION ... < lnkppc > (E) #A0317-D Cannot open file: C:\dSPACE\DS1401\RTLib\ds1401.lib
Errors: 1, Warnings: 0
-- call "C:\PPCTools37\BIN\lnkppc.exe" -QmsA0314 -QmsA0407 -QmeA0307 -QmeA0329 -m..\TC_20_RPC.map -o ..\TC_20_RPC.ppc -c _tmp_TC_20_RPC.lk
LINKING FAILED (1)
MAKE PROCESS ABORTED.
I have been trying to figure this out for a while. Please let me know if any of you guys know how to fix this issue. Any help would be greatly appreciated !
Thanks.
Vishwa.
  댓글 수: 3
Vishwanathan
Vishwanathan 2012년 12월 10일
Hello Azzi,
Well this is the first time I am using it. The person who had built the code had used the same workstation on which I am trying now. He also compiled the code for dSpace using the same workstation.
The version of MATLAB is R2010a. OS is Windows 7 64bit.
Thanks.
Vishwa.
Ken Loveday
Ken Loveday 2022년 11월 1일
편집: Ken Loveday 2022년 11월 1일
I had a very simular error (see below). Turns out it was because I had spaces in the Simulink (.slx) file path. Replaced spaces (and dashes) with underscores and code compiled and linked fine.
Orig file path (with error below): C:\Users\UserName\Documents\MyProject - Test\MyModel.slx
New file Path (no error): C:\Users\UserName\Documents\MyProject_Test\MyModel.slx
LINKING APPLICATION ...
< lnkppc >
(E) #A0317-D Cannot open file: C:\Users\UserName\Documents\MyProject.obj
Errors: 1, Warnings: 0

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 10일
편집: Azzi Abdelmalek 2012년 12월 10일
I have not the same card, mine is dSpace 1104, I will try to find out what is your problème, but before, answer these questions:
  1. The dSpace installed on your computer, did work corectly before,
  2. are using your card with Analog/Numeric I/O or just for simulations
  3. have you configured correctly your model
And I have doubts about simulink coder support windows 64 bits,
  댓글 수: 8
Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 10일
I have to check If Simulink coder support windows 64 bits.
Vishwanathan
Vishwanathan 2012년 12월 10일
Hello Azzi,
You are right. I just looked into the SIMULINK R2010a compatibility issues. I found this post. http://www.mathworks.com/matlabcentral/answers/38494
I should have checked this the first thing. I was so sure that the error was not because of the compatibility issue, because I thought the person who built the code used this laptop. I am guessing he did not. I am sorry of if had wasted your time. Thank you a lot for your replies and pointing me in the right direction!
Vishwa

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

khaled20
khaled20 2017년 5월 3일
Dear sir greeting,
I have a request about loading a matlab file from dspace.
We have a block diagram in Simulink. We have 'build' the model in Simulink and run it. Now we are trying to use the model in Control Desk to run the real time interface. Every time we load a .sdf file or a .ppc file of the model, a new tab for the model does not open in the tool window of Control Desk. and we have got this error message 'Failed to access Simulink model,è Maybe a wrong model was loaded.
Best regards,
KHALED

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by