Deployment of generated code
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Evgenii Startcev
il 18 Mar 2021
Commentato: Darshan Ramakant Bhat
il 19 Mar 2021
Hello!
I am new to Matlab and Matlab Coder and I have a question. I successfully managed to generate code for Matlab function I need to put into hardware using C language. But as I see resulting code is not "self-sufficient", it uses some of custom matlab libraries.In particular it is different calls to functions which names starts with "emlrt", such as "emlrtAlias", "emlrtCreateStructMatrix", "emlrtSetField" and many others.
What are the options for deployment of generated code for custom hardware? Is it possible to get sources for missing function to build full standalone application for custom hardware. Or maybe there are some options to configure Matlab Coder somehow to avoid using external API?
0 Commenti
Risposta accettata
Darshan Ramakant Bhat
il 19 Mar 2021
You need to change the build type from "MEX" to "lib" or "dll" or "source code only".
Below documentation talks more about it.
Hope this will be helpful for you.
2 Commenti
Darshan Ramakant Bhat
il 19 Mar 2021
If you are relocating the code then packNGo workflow may help you :
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!