Is possible to show my custom app in Simulink APPS tab

조회 수: 4 (최근 30일)
DejvOu
DejvOu 2023년 7월 21일
댓글: DejvOu 2024년 10월 4일
Hi all!
I am currently working on an extension app for Embedded coder and my idea is to create custom tab in Simulink toolstrip. I have used this tutorial for that. Then I have successfully packed the app using "Package App" tool and everything works quite good, problem is that the my installed app shows only in Matlab's APPS tab. Is there any possible workaround how to set application as visible in Simulink like Embedded Coder app does?
Side question to this is if there is possibility to create app directly for simulink the way how all the apps in Simulink APPS tab works? You pick the app from the toolstrip tab and new closeable tab will open. Because even if the way described in tutorial mentioned above works, it is little bit hacky.
Thanks in advance for any answer. :)

채택된 답변

Sanchari
Sanchari 2023년 9월 12일
편집: Sanchari 2023년 9월 12일
Hello,
I understand that you want to add a custom app under the Simulink’s toolstrip Apps Tab. However, according to the latest versions, it is not possible to add a custom app directly to the Apps tab. The "APPS" tab is specifically designed to display a collection of built-in apps provided by MathWorks. The closest workaround solution would be to create a “Custom Tab under the Simulink’s toolstrip and add your custom app there. To do so, please refer to the following documentation to follow through the steps:
  1. Create custom simulink toolstrip tabs- https://www.mathworks.com/help/simulink/ug/create-custom-simulink-toolstrip-tabs.html#mw_ed60655f-9650-4daa-a254-6508d9b5eb46 . To start simulink from MATLAB, type "simulink" instead of "start_simulink" in the command window as it has been updated in the latest versions.
You can further go through the following learnings from MATLAB community to know more about this:
  1. Customize toolstrip to add a new section- https://www.mathworks.com/support/search.html/answers/1448944-customize-toolstrip-to-new-one-section.html?fq%5B%5D=asset_type_name:answer&fq%5B%5D=category:simulink/initialize-reset-and-terminate-functions&page=1
  2. Is it possible to add a custom tab to Simulink toolstrip- https://www.mathworks.com/support/search.html/answers/597529-is-it-possible-to-add-a-custom-tab-to-the-simulink-toolstrip.html?fq%5B%5D=asset_type_name:answer&fq%5B%5D=category:simulink/initialize-reset-and-terminate-functions&page=1
Hope this helps!
  댓글 수: 3
Adrien
Adrien 2024년 10월 3일
Hello,
I have used your advices to create a custome tab. It works fine. Thank you.
Still for my use case I would like to use a drop down list and edit the content dynamically in function of a file I select via a button (see below).
Can this be done? Or the content of the dropdown is fully fixed?
| button |
| dropdown|
Thank you
DejvOu
DejvOu 2024년 10월 4일
Hello Adrien,
it seems the official way to implement the toolstrip UI is hardcoded in JSON file, however there is also a undocumented/unofficial way. I am not sure if it still works, especially for simulink toolstrip, but it can be helpful: https://undocumentedmatlab.com/articles/tag/toolstrip
Personally, I did not use it for this project because I wanted the "Matlab-approved" solution to ensure the future compatibility, but I have very possitive experience with this site and their tutorials.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by