Chapter 2 Invoking DocumentIt
DocumentIt User Guide 2-8 ni.com
number of blocks: @num_blks_in_sb_i@
<display other desired superblock attributes here>
block list:
@LOOPP j=0, j lt num_blks_in_sb_i, j=j plus 1@@
@SCOPE BLOCK j@@
block name: @blk_name_s@
block ID: @blk_id_i@
block type: @blk_typ_s@
block inputs: @num_blk_in_i@
block outputs: @num_blk_out_i@
<display other desired block attributes here>
@ENDLOOPP@@
---------------------------------------------------
@ENDLOOPP@@
@ENDSEGMENT@@
DocumentIt uses the TPL formatting language, such as the
block_info.tpl file shown in Example2-1, and built-in model
parameters for automatic document generation. This template file generates default output in Microsoft Word format with the

blockname

.doc file name as shown in Example2-2.
Example 2-2 Sample Output for Arbitrate Throttle Control SuperBlock
superblock name: Arbitrate Throttle Control
superblock inputs: 3
superblock outputs: 1
number of blocks: 3
<display other desired superblock attributes here>
block list:
block name: throttle switch
block ID: 24
block type: Data Path Switch
block inputs: 3
block outputs: 1
<display other desired block attributes here>
block name: Block
block ID: 34
block type: Relational Operator -- LT-EQ-GT
block inputs: 2
block outputs: 1
<display other desired block attributes here>