Effacer les filtres
Effacer les filtres

Xtensa to Matlab API and interface

2 vues (au cours des 30 derniers jours)
Alex Sidorov
Alex Sidorov le 6 Juin 2022
Modifié(e) : Simar le 31 Jan 2024
Hi Everyone,
I’m trying to accelerate Xtensa Xplorer development flow using Matlab. The part of the code is in Xtensa Xplorer environment and written on C. The second part is MATLAB script that later will be ported to the Xtensa C. To debug both and simultaneously C code and Matlab script, the API required for the data exchanging between two environments. The Matlab has interface and API for MS Visual Studion C and C++ projects. Has Xtensa development environment the similar interface to Matlab?
Can be used ThingSpeak interface for above mentioned proposal?
Thanks,
Alex S

Réponses (1)

Simar
Simar le 31 Jan 2024
Modifié(e) : Simar le 31 Jan 2024
Hi Alex,
As per my understanding you are seeking guidance on establishing a connection between MATLAB and Xtensa Xplorer for the purpose of simultaneous debugging and data exchange, while exploring out potential use of ThingSpeak as part of this solution. To facilitate data exchange between MATLAB and Xtensa Xplorer for simultaneous debugging, consider exploring these strategies:
  • File I/O: Use file input/output operations to write data from one environment and read it in the other. This can be straightforward but may not be efficient for large volumes of data or real-time interactions.
  • Custom API: Develop a custom API that enables MATLAB to communicate with the Xtensa Xplorer environment. This could involve writing C code that interfaces with MATLAB code, using MATLAB's Engine API or MEX files to call MATLAB functions from C code.
  • TCP/IP or UDP Sockets: Implement network communication between MATLAB and the Xtensa Xplorer using TCP/IP or UDP sockets if the Xplorer environment can support it. MATLAB has built-in support for socket communication.
  • MATLAB Coder: Convert MATLAB algorithms into C code using MATLAB Coder, which can then be integrated into Xtensa project. While this does not directly address simultaneous debugging, it could streamline the process of porting MATLAB scripts to Xtensa C.
Hope it helps !
Best Regards,
Simar

Catégories

En savoir plus sur Weather and Atmospheric Science dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by