Matlab crashes on calllib
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I am running a code of Dynamxel Motor. It uses built-in libraries of C created by the manufacturers (so i might not read or modify them) located here. When I execute the following, the Matlab exits all of a sudden with no error, or warning:
VALUE = calllib(lib_name, 'portHandler', DEVICE_NAME)
Will appreciate any help, thanks alot..
AR
1 commentaire
Junjie Lv
le 20 Juil 2023
Have you solve the issue ? i also meet with this problem when calling Nimotion's Nim_init(const char* strSdkPath) function, it just crashes repeatedly. Why does MATLAB crash when I make a function call on a DLL in MATLAB 7.6 (R2008a)? - MATLAB Answers - MATLAB Central (mathworks.com) does not work for this issue
Réponses (1)
Sarthak
le 26 Avr 2024
Hey Ahmed,
Doing a simple search, I was able to see many people facing the same issue. I am attaching a few MATLAB Answers for your reference which suggests the reasons and workarounds why this crash occurs below:
- https://www.mathworks.com/matlabcentral/answers/98787-why-does-calllib-to-a-c-library-built-using-visual-c-cause-matlab-7-6-2008a-to-crash-when-used
- https://www.mathworks.com/matlabcentral/answers/454098-how-to-do-wait-calllib-to-give-answer-or-catch-exception
- https://www.mathworks.com/matlabcentral/answers/454098-how-to-do-wait-calllib-to-give-answer-or-catch-exception
- https://www.mathworks.com/matlabcentral/answers/440687-calllib-crashes-matlab-no-error-given
However if none of this helps, reach out to MathWorks Technical Support.
0 commentaires
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!