APP Designer code convert to CPP code

19 visualizaciones (últimos 30 días)
Bharat K
Bharat K el 22 de Sept. de 2022
Respondida: Steven Lord el 22 de Sept. de 2022
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.

Respuestas (2)

Rik
Rik el 22 de Sept. de 2022
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 comentarios
Bharat K
Bharat K el 22 de Sept. de 2022
want a standalone exe, how can I include my simulink control model?
Rik
Rik el 22 de Sept. de 2022
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.

Iniciar sesión para comentar.


Steven Lord
Steven Lord el 22 de Sept. de 2022
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.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by