Effacer les filtres
Effacer les filtres

Accessing external software using Matlab GUI

5 vues (au cours des 30 derniers jours)
Sushant
Sushant le 19 Jan 2024
Commenté : Harald le 22 Jan 2024
I have developed a MATLAB's App Designer based GUI for neurostimulation and would like to access the neurostimulator hardware through the same. How can access an external software (neurostimulators software) from the GUI.
I feel its a very easy thing to do but i went through a lot of documentation and could not figure out what to do in this case. Any help?

Réponses (1)

Harald
Harald le 19 Jan 2024
Hi Sushant,
I'd say it depends on the interfaces of the specific software.
If the software can be run from a console, I would use the system command to run the console command.
If there is any C++, Java, .NET, ... interface, you can use this from MATLAB as well.
Best wishes,
Harald
  2 commentaires
Sushant
Sushant le 22 Jan 2024
Hello Harald,
Thank you for your response.
I am trying to access an SDK for a neurostimulator module, which has .dll and .mex64 files in it. I am unsure about how to use my GUI and the API callbacks to access the said SDK.
Let me know if you have any suggestions for me.
Best Regards,
Sushant Joshi
Harald
Harald le 22 Jan 2024
Hi Sushant,
MEX files can be called like regular MATLAB files. The SDK hopefully comes with some sort of documentation on the input and output arguments.
To call DLLs, I'd try loadlibrary / calllib / unloadlibrary.
Best wishes,
Harald

Connectez-vous pour commenter.

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by