Target Language Compiler    

Reduced Blocks

Nonvirtual blocks can specify that they are to be treated as a wire (i.e., a non-operation during model execution where the input is passed to the output). S-functions achieve this capability via the ssSetBlockReduction(S,true) macro.

Table A-20: Model.rtw Model Parameters Record 
Variable/Record Name
Description
ReducedBlocks {

List of blocks that are being treated as a wire.

  NumReducedBlocks

Integer, total number of blocks that are being treated as a wire.

  ReducedBlock {

One record for each block that is being treated as a wire.

  Type

Block type, e.g., S-function.

  Name

Block name preceded with a <root> or <S#> token.

  OptimizationInfo

Information about how/why this block was reduced.

  InComment

0: Used for generating comments involving the blocks being treated as a wire. This is 0 initially, then during code generation, this will become 1.

}


  Model Parameters Record Custom Storage Class Record