How to create a linux shared object from matlab code (Matlab 2015b)
Afficher commentaires plus anciens
Hello everyone,
I want to connect matlab written functions into our vehicle control unit. The control unit is a myRio 1900 which gets programmed with Labview. Until now I managed to create .dll files from my function by using the matlab coder. I could use the .dll running the labview code on windows.
But for now I am missing the last step as the myRio is running under Ni Realtime linux I cant use the .dll file anymore. I would need a linux shared object. Therefore I want to ask if and how I can create the .so file from matlab. It would be really benificial for the application if there werent to many steps involved as the process will get repeated quite frequently.
I found this question which exlained it for some older version but couldnt replicate the result. Apperently the usage of mcc has changed.
Currently I am using: Win 7 64bit Profesional, Matlab 2015b 32bit formula Student Licence (is there a way to create 32bit dlls from a 64bit Matlab?)
I appreciate any help!
Best Regards, Stephan
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 10 Juil 2016
0 votes
It is not that mcc has changed (though it has) but rather that you are trying to "cross-compile", creating a Linux library from MS Windows. MATLAB Coder should be able to do that if you configure the correct toolchain; unfortunately I do not know what the correct toolchain is (especially not for a realtime Linux.)
For example, MATLAB Coder is invoked by Simulink to build models for deployment on Arduino, which uses Linux, so it must be possible to configure. I have not had reason to do that myself (I do not have any Linux hardware.)
Catégories
En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!