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

조회 수: 3 (최근 30일)
Roop
Roop 2024년 7월 2일
편집: Roop 2024년 7월 2일
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