How to customize help documentation for Simulink custom blocks?

조회 수: 18 (최근 30일)
I create my own library with own library elements similar to Simulink library. How can I generate similar type html help to the own blocks as it can be seen in case of Simulink standard blocks? Do I need to have Simulink Report Generator Toolbox to that? 
Example: 
Simulink->Commonly Used Blocks->Block Gain 
Double click on Gain and click on Help. I get the html Help for that linked into the Matlab help into the right place (here Simulink->Commonly Used Blocks->Block Gain). 
I create custom Library and Sublibrary: 
mylib->testlib->BlockA 
Double click on BlockA and click on Help. I would like to get the html Help of BlockA linked into the Matlab help into the right place (here mylib->testlib->BlockA) as in case of standard Simulink blocks. Please advice

채택된 답변

MathWorks Support Team
MathWorks Support Team 2022년 10월 8일
편집: MathWorks Support Team 2022년 10월 8일
1. You do not need the Simulink Report Generator Toolbox to do this.
2. In the attached model 'constantlib', if you right click on the block -> Edit Mask -> Documentation. You will see that I have modified the fields in this dialog window, and specifically the 'Mask help' section. The 'web' command will bring up the html help file I have created for this particular block. In this case, I just used the Constant block documentation for ease of presentation, you probably already have some html help file generated already for your library block.
3. In order for the 'web' command to work properly, you need to read carefully  this documentation 
on how to add documentation to the help browser.
4. If you are creating custom Simscape blocks using ssc_build, you can create an sl_postprocess.m containing the following command
 
>> set_param('your block name', 'MaskHelp', 'Your own mask help')
in the package.  See the following documentation for more details:
https://www.mathworks.com/help/simscape/ref/sl_postprocess.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by