Using Simulink | ![]() ![]() |
The Mask Help Text Field
You can provide help text that gets displayed when the Help button is pressed on the masked block's dialog box. If you create models for others to use, this is a good place to explain how the block works and how to enter its parameters.
You can include user-written documentation for a masked block's help. You can specify any of the following for the masked block help text:
http:
, www
, file:
, ftp:
, or mailto:
)web
command (launches a browser)eval
command (evaluates a MATLAB string)Simulink examines the first line of the masked block help text. If it detects a URL specification, web
command, or eval
command, it accesses the block help as directed; otherwise, the full contents of the masked block help text are displayed in the browser.
These examples illustrate several acceptable commands.
web([docroot '/My Blockset Doc/' get_param(gcb,'MaskType')... '.html']) eval('!Word My_Spec.doc') http://www.mathworks.com file:///c:/mydir/helpdoc.html www.mathworks.com
Simulink automatically wraps long lines of text.
![]() | The Block Description Field | Creating Self-Modifying Masked Blocks | ![]() |