How to customize help documentation for Simulink custom blocks?
조회 수: 18 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 1월 13일
편집: MathWorks Support Team
2022년 10월 8일
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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!