Is possible to show my custom app in Simulink APPS tab

3 次查看(过去 30 天)
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 Laveau
Adrien Laveau 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