Is it possible to draw/show a Simulink Model in Appdesigner?

조회 수: 3 (최근 30일)
Nils
Nils 2022년 8월 19일
댓글: Nils 2022년 8월 30일
Dear MathWorkers,
I am creating an App in the Appdesigner and I programmatically set up a Simulink/Simscape model by its parameters (numbers of teeth for rotating machine and so on....).
I want to show the programmatically created structure inside the app. Is there a way to do it?
Best regards
Nils
  댓글 수: 1
Nils
Nils 2022년 8월 19일
편집: Nils 2022년 8월 19일
Maybe there is some way of using the HTML component?

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

채택된 답변

Suman
Suman 2022년 8월 24일
편집: Suman 2022년 8월 24일
Hi Nils,
As per my understanding to your question, you can create an app using App Designer with live simulation results. Please refer to the Lorenz System example.
Alternatively, you can also create a similar GUI structure in HTML and put it inside your app using the "HTML component" in App Designer.
You can create a "HTML component" programatically using uihtml. You may refer to its documentation here.
You may have a look at this particular answer with example for reference.
You may also refer to this documentation page to create Web View of a Simulink Model.
Cheers,
Suman
  댓글 수: 1
Nils
Nils 2022년 8월 30일
Hey Suman,
I basically just used the HTML-Component to show a model within Appdesigner. The HTML Code I generated with "slwebview()" function.
Thanks for you reply.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by