Borrar filtros
Borrar filtros

can I use custom libraries (dlls) written for matlab with Thingspeak

52 visualizaciones (últimos 30 días)
Hatim Motiwala
Hatim Motiwala el 31 de Jul. de 2024 a las 0:31
Comentada: Hatim Motiwala el 4 de Ag. de 2024 a las 20:24
I have developed some custom libraries (dlls written in C++) that I call and use in analysis using desktop Matlab.
Is there a way to use these libraries with thingspeak ?
Are there any alternatives or workarounds that would serve the same purpose.
  2 comentarios
Vinod
Vinod el 31 de Jul. de 2024 a las 14:01
Editada: Vinod el 31 de Jul. de 2024 a las 14:01
Can you say more about the DLLs and what they do? Do you have a git repo where the code is accessible?
Hatim Motiwala
Hatim Motiwala el 31 de Jul. de 2024 a las 14:32
Editada: Hatim Motiwala el 31 de Jul. de 2024 a las 14:35
For example one of the libraries calculates thermodynamic properties of air and gas mixtures using different numerical methods. I have coded these myself several years ago in C++ and currently am using them for analysis with my desktop version of Matlab. I don't have the code on Git repo. Want to know if its possible to use such custom developed libraries with Thingspeak.
I should mention here that I am not very familiar with capabilities of Thingspeak. Just beginning to explore the possibilities for using it.

Iniciar sesión para comentar.

Respuestas (1)

Vinod
Vinod el 31 de Jul. de 2024 a las 17:57
If you have the DLLs and MATLAB code calling those DLLs in a git repo, you could have your MATLAB Analysis on ThingSpeak clone the repo and execute the code in it.
I would recommend testing your code in MATLAB Online and before operationalizing it on ThingSpeak using a TimeControl or React.
  4 comentarios
Vinod
Vinod el 4 de Ag. de 2024 a las 17:59
I interpreted your requirement as loading a dynamic loaded library (DLL), not a literal .dll file that is windows specific. To load a dynamic loaded library, you will need to compile it for your OS in which the application is executing in, in this case Linux.
Hatim Motiwala
Hatim Motiwala el 4 de Ag. de 2024 a las 20:24
Yes, I did not know that Matlab online runs on Linux till I got the error on loadlibrary() call :-)
Thanks for all your help, I will look into compiling my code on Linux.

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by