Error while compiling SIMULINK code for dSpace ControlDesk..

35 visualizzazioni (ultimi 30 giorni)
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 Commenti
Vishwanathan
Vishwanathan il 10 Dic 2012
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 il 1 Nov 2022
Modificato: Ken Loveday il 1 Nov 2022
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

Accedi per commentare.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 10 Dic 2012
Modificato: Azzi Abdelmalek il 10 Dic 2012
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 Commenti
Azzi Abdelmalek
Azzi Abdelmalek il 10 Dic 2012
I have to check If Simulink coder support windows 64 bits.
Vishwanathan
Vishwanathan il 10 Dic 2012
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

Accedi per commentare.

Più risposte (1)

khaled20
khaled20 il 3 Mag 2017
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

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by