APP Designer code convert to CPP code

I am integrating simulink control logic with App Designer GUI, I am able to do communication and it works fine, but when I do code generation in simulink, it gives error that UIFigure used in App Designer GUI script, does not support code generation,
I want create standalone exe of simulink and App dessigner, Is there any way I can achieve this.
I am using Matlab 2016b, simulink coder.

답변 (2개)

Rik
Rik 2022년 9월 22일

0 개 추천

Do you need to generate the C++ code, or is it also fine to end up a stand-alone executable?
As the message indicates, UIFigures are not supported for code generation, but you can still use the compiler toolbox to create an exe for people without Matlab/Simulink.

댓글 수: 4

Bharat K
Bharat K 2022년 9월 22일
편집: Bharat K 2022년 9월 22일
Yes, I have to create stand-alone executable from generated C++ code, my control logic is in simulink and GUI is in app Designer.
UIFigures are not supported for code generation, Is there any way I can create standalone exe?
Thanks in advance!
Rik
Rik 2022년 9월 22일
If you want a standalone exe, you don't need to generate C++ code first. If you just want an exe, you can use the compiler toolbox. Do you have a license for that toolbox?
Bharat K
Bharat K 2022년 9월 22일
want a standalone exe, how can I include my simulink control model?
Rik
Rik 2022년 9월 22일
Why don't you have a look if you have the compiler toolbox, and how the toolbox works? That is what I would have to do to find the answer. I don't know the answer to your question, but I have pointed you to the exact resource you need to solve your own question.

댓글을 달려면 로그인하십시오.

Steven Lord
Steven Lord 2022년 9월 22일

0 개 추천

If upgrading to a release (R2020a or later) that includes Simulink Compiler is an option, you might find the workflow on this documentation page useful. I don't know how easy it will be to do what you're asking in release R2016b, but that's because I don't generally deploy Simulink models.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2022년 9월 22일

답변:

2022년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by