Is it possible to add a custom button in the Simulink's model editor Explorer Bar
1 view (last 30 days)
Show older comments
Hello,
Coworkers and I are looking for a way to add a custom button in the Explorer bar (The gray bar on the left of the Model Editor featuring a Zoom, Fit to View, Sample Time, ...).
The upper toolstrip would also be a good candidate if it's impossible to customize the Explorer bar.
Context :
We are building models that has many constraints/rules. The constraint's verifications are being automated via Scripts.
Ideal solution :
The general idea is to have a button that acts as an indicator that would always be present on the screen and change colour when a rule is broken. We want to have minimal impact on the designer's model therefore custom subsystem are out of the question. Clicking the button would lead to a list of broken rules with dynamic links to blocks that breaks a rule.
We already have the knowledge to build the button's callback, what we would like to know is :
- Can we add a button to the Explorer bar ?
- If we can't , can we add a button to the toolstrip ?
- Can buttons change icon dynamically ?
Thank you for your time,
P Lepage.
0 Comments
Accepted Answer
Fangjun Jiang
on 18 Sep 2020
This Edit time Model Advisor checking seems to be a good solution. Check the lastest version to see if it can be done on a customized (your own) Model Advisor check.
5 Comments
Fangjun Jiang
on 18 Sep 2020
I think I've seen a popup bar at the top of the Simulink model window. Sometimes it pops up to remind that the model is saved in an older version, remind to upgrade, etc. I have not figured out how it is done, or whether there is an API open to the user.
I can suggest to have a popup warning window once a while. The user can close it or it will close itself after a few seconds if the user does not take any action.
More Answers (0)
See Also
Categories
Find more on Naming Conventions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!