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

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 件のコメント

Vinod
Vinod 2024 年 7 月 31 日
編集済み: Vinod 2024 年 7 月 31 日
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 2024 年 7 月 31 日
編集済み: Hatim Motiwala 2024 年 7 月 31 日
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.

サインインしてコメントする。

 採用された回答

Vinod
Vinod 2024 年 7 月 31 日

1 投票

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.

5 件のコメント

Hatim Motiwala
Hatim Motiwala 2024 年 8 月 1 日
Thanks for the tip, will try it out.
Hatim Motiwala
Hatim Motiwala 2024 年 8 月 2 日
Cannot test my library (dll) on Matlab Online because what I have is a windows dll which works fine with Matlab installed on my Windows PC but Matlab Online runs on Linux so it requires a shared library .so file.
I am not familiar with Linux and have no idea how to compile my C code to create a .so file for Linux. Will have to research this.
Vinod
Vinod 2024 年 8 月 4 日
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 2024 年 8 月 4 日
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.
Hatim Motiwala
Hatim Motiwala 2024 年 9 月 10 日
Hi Vinod,
you mentioned: "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."
So I was able to save test code and library on Github repository and run it successfully on Thingspeak.
However, in this implementation everytime Thingspeak analysis app runs it will download the code from Git repo and then run it. Isn't there a way to download the repo once on ThingSpeak and retain it for subsequent runs?
Thanks

サインインしてコメントする。

その他の回答 (0 件)

コミュニティ

その他の回答  ThingSpeak コミュニティ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by