Custom html help file for Simscape Custom Component

조회 수: 19 (최근 30일)
Norbert Heinzelmann
Norbert Heinzelmann 2020년 2월 19일
답변: sanidhyak 2025년 9월 1일 10:18
Is it possible to integrate a custom html help file in a Simscape Custom Component using the Simscape Language (.ssc). So if I press the help button, I would like to have my own help for this block.

채택된 답변

sanidhyak
sanidhyak 2025년 9월 1일 10:18
I understand that you are trying to integrate a custom HTML help file into a Simscape custom component so that when you press the Help button, your own documentation appears. You need to create your HTML file and then reference it inside the component definition using the help directive.
Kindly refer to the following example for the same:
component MyComponent
% Parameters
parameters
R = { 1, 'Ohm' }; % Resistance
end
% Add Help annotation
annotations
help('myCustomHelp.html');
end
end
In this setup:
  • We created an HTML file named “myCustomHelp.html” and saved it in the same folder (or in a help/ subfolder) as your “.ssc” file.
  • After that, run “ssc_build MyLibrary” to generate the Simulink block.
  • When you open the block in Simulink and press the Help button, the custom HTML file will now open.
This method now enables you to link your own documentation with your custom block.
I hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by