How to create a DLL file from .cpp and .h in Matlab?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am currently using a temperature module, MAX6675, the library of the module is downloaded from Arduino (see picture). But now I would like to use this library on Matlab.
One of the solution will be creating a DLL file from the header file .h and source file .c from the Arduino library. So that the function inside the source file can be used directly in MATLAB. (Correct me if I'm wrong)
How to create a DLL file from .cpp and .h files in Matlab? Because the Matlab coder and Matlab compiler are only allow .m file to do the conversion.
0 comentarios
Respuesta aceptada
cr
el 14 de Dic. de 2022
Editada: cr
el 14 de Dic. de 2022
You dont need matlab to compile C/cpp files. Just need a c/cpp compiler.
3 comentarios
cr
el 15 de Dic. de 2022
VS can compile c/c++ code and produce you a dll. Needless to mention, all required libraries and headers must be included to compile without errors.
Más respuestas (0)
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!