Error while compiling SIMULINK code for dSpace ControlDesk..
15 views (last 30 days)
Show older comments
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
Ken Loveday
on 1 Nov 2022
Edited: Ken Loveday
on 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
Accepted Answer
Azzi Abdelmalek
on 10 Dec 2012
Edited: Azzi Abdelmalek
on 10 Dec 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:
- The dSpace installed on your computer, did work corectly before,
- are using your card with Analog/Numeric I/O or just for simulations
- have you configured correctly your model
And I have doubts about simulink coder support windows 64 bits,
8 Comments
More Answers (1)
khaled20
on 3 May 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
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!