Is it possible to add a custom button in the Simulink's model editor Explorer Bar
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Fangjun Jiang
2020년 9월 18일
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
Fangjun Jiang
2020년 9월 18일
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!