Is there a way to check code generation compatibility for a mlapp file?

2 vues (au cours des 30 derniers jours)
Roop
Roop le 2 Juil 2024
Modifié(e) : Roop le 2 Juil 2024
I know for .m files you can use coder.screener() in the Command Window to get an analysis of code generation compatibility. However, I am in need of something for App Designer files (mlapp files).
Is there a way to check code generation compatibilty for mlapp files? If not, what are my alternatives to manually troubleshoot it if the general error I'm given is that the entire class is not code generation compatible?
Thanks!

Réponse acceptée

Steven Lord
Steven Lord le 2 Juil 2024
By "code generation" do you mean generating C or C++ code using MATLAB Coder? I'm fairly certain that's not going to work, as it doesn't appear as any functions in the App Building category in MATLAB support the C/C++ Code Generation Extended Capability. Indeed, that Extended Capability doesn't even show up as a filter in the frame along the left side of that page. Compare that with the Mathematics category which does list that Extended Capability.
  1 commentaire
Roop
Roop le 2 Juil 2024
Modifié(e) : Roop le 2 Juil 2024
@Steven Lord Hmm... yeah I think you are right. I just copied the all the code in the "Code View" tab into a .m file and ran coder.screener(), and yeah like all of the App Building functionality is moot.
I have developed an application (tied to a Simulink that is further tied to a large external model) that originally used Interpreted MATLAB functions to pass data to/from Simulink to this external modeling software.
However, I am trying to turn this application into a standalone executable, which requires use of the Simulink Compiler (because my app is tied to a Simulink model). Therefore, I have to replace the Interpreted Matlab function blocks (which are not compatible with Simulink Compiler) with something else - MATLAB Function blocks or MATLAB System blocks (both of which require code generation compatibility).
So my conundrum, is how to make this application code generation compatible...?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder 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