How to include "help option" in custom model advisor check

1 回表示 (過去 30 日間)
Mili Mukherjee
Mili Mukherjee 2020 年 8 月 14 日
回答済み: Nishad Nerurkar 2020 年 10 月 2 日
In custom model advisor check, need to include 'help'/'what is this' option.
Programatically or via GUI. Please help me for the same.
Thanks in advance for answering my question.
  5 件のコメント
Mili Mukherjee
Mili Mukherjee 2020 年 8 月 20 日
Mili Mukherjee
Mili Mukherjee 2020 年 8 月 20 日
Custom Model advisor check opens the default model advisor help. Need to add custom help. How to do it?

サインインしてコメントする。

回答 (2 件)

Prabhanjan Mentla
Prabhanjan Mentla 2020 年 8 月 21 日
Hi,
There is a help button in the model advisor check in the bottom right, other than the one on the top.
Help at the top directs to the documentation page of model advisor and Simulink, while in the bottom it directs to the information regarding that check.
Can you provide more information on what other help information you require as a custom help?
Hope this helps.
  1 件のコメント
Mili Mukherjee
Mili Mukherjee 2020 年 8 月 24 日
Thanks for you answer. Unfortunatly I know this option which I didn't wanted to mean.
I am taking regarding to custom model advisor check which is written by me.This MAC is not from MATHWORKS. For this MAC, I want to include information in terms of help. I require some comannd(or by MAC GUI) by which my custom help can be linked with help buttom in MAC GUI.
Thanks.

サインインしてコメントする。


Nishad Nerurkar
Nishad Nerurkar 2020 年 10 月 2 日
Hi,
There is no way as such to add a "What's This?" option on right-click to a custom check. However, the help button can be redirected.
This is by no means an easy task. It requires a little more customization when creating checks. What you will need to do to add a custom help page to a custom Model Advisor check is to manually create the check task and check folder. This will redirect the Help button on the Check UI to open the custom page for the check.
Assuming that you have an sl_Customization file already with a check defined, you can use a code similar to below -
function sl_customization(cm)
....
%% ==> Use this function to create a custom task and folder with a check already registered
cm.addModelAdvisorTaskAdvisorFcn(@defineCheckTask);
end
function defineCheckTask
mdladvRoot = ModelAdvisor.Root;
MAT1 = ModelAdvisor.Task('MyTaskID');
MAT1.setCheck('MyCheckID');
%% ==> Add the help button callback below
MAT1.HelpMethod = 'web'; % This will open the the web browser
MAT1.HelpArgs = {'www.mathworks.com'}; % This will navigate the web browser to a new page.
mdladvRoot.register(MAT1);
MAG = ModelAdvisor.Group('MyChecksFolder');
MAG.addTask(MAT1);
mdladvRoot.publish(MAG);
end
Thanks,
Nishad

カテゴリ

Help Center および File ExchangeRun Model Advisor Checks についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by