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

2 次查看(过去 30 天)
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!

采纳的回答

Steven Lord
Steven Lord 2024-7-2
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 个评论
Roop
Roop 2024-7-2
编辑:Roop 2024-7-2
@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...?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by