DocBlock
R2026bCreate text that documents model and save text with model
Libraries:
Simulink /
Model-Wide Utilities
Description
The DocBlock block allows you to create and edit text that documents a model, and save that text with the model. Double-clicking an instance of the block creates a temporary file containing the text associated with this block and opens the file in an editor. Use the editor to modify the text and save the file. Simulink® software stores the contents of the saved file in the model file.
The DocBlock block supports HTML, Rich Text Format (RTF), and ASCII text document types. The default editors for these different document types are
HTML — Microsoft® Word (if available). Otherwise, the DocBlock block opens HTML documents using the editor specified on the Editor/Debugger Preferences pane of the Preferences dialog box.
RTF — Microsoft Word (if available). Otherwise, the DocBlock block opens RTF documents using the editor specified on the Editor/Debugger Preferences pane of the Preferences dialog box.
Text — The DocBlock block opens text documents using the editor specified on the Editor/Debugger Preferences pane of the Preferences dialog box.
Use the docblock command to change the
default editors.
Tip
To edit the block parameters of the DocBlock block, right-click the block icon and select Edit Mask > Mask Parameters.
Examples
Limitations
The DocBlock block does not support image files. To add image files to your model documentation, use the Notes pane in the Simulink Editor instead. See Write In-Model Documentation Using Notes.
Parameters
Block Characteristics
Data Types | |
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
