Error while compiling SIMULINK code for dSpace ControlDesk..

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 Comments

Have you used it before? and which version of matlab and OS
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.
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

Sign in to comment.

 Accepted Answer

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 Comments

Hello Azzi,
Thanks a lot for your reply. Here are the answers.
1) Yes, the dSpace is working properly in the system. I used a demo file to run an experiment (which did not require to build the SIMULINK code as all the files necessary was available.) But when I tried to compile a very simple code in SIMULINK and when I try to build it, I am getting the very same error.
2) I do not understand your question here. We are using dSpace Microautobox in an engine test cell for running experiments.
3) Yes the model is configured correctly. I double checked on that.
Thank you again.
Vishwa.
Have you set your c++ compiler with
mex -setup
Hello,
Yes. I set up the compiler again now to check it. Still I am getting the same error.
Vishwa.
IS this a dSpace error or MATLAB error? It says that it is unable to open ds1401.lib file. I am not sure why.
Thanks. Vishwa
Have you set your system target file to rti1401?
Yes. The system target file is set to rti1401.
Thanks for your interest in my problem.
Vishwa.
I have to check If Simulink coder support windows 64 bits.
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

Sign in to comment.

More Answers (1)

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

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!