Is possible to show my custom app in Simulink APPS tab

3 views (last 30 days)
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. :)

Accepted Answer

Sanchari
Sanchari on 12 Sep 2023
Edited: Sanchari on 12 Sep 2023
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 Comments
Adrien Laveau
Adrien Laveau on 3 Oct 2024
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 on 4 Oct 2024
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.

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!