Target Language Compiler    

Block Type Counts

The model.rtw contains block type counts that describe what blocks are in your model. This information is model dependent; it provides a summary of how many different types of blocks are used within a particular model as well as a list of records that summarize how many blocks of each block type are found within the particular model. Similarly, the total number of unique S-function names found within a model are reported as well as the count of occurrences for each S-function name. Information describing what types of blocks are used and how many of them there are is provided in the BlockTypeCount records.

This table lists all the available block type counts.

Table A-9: Model.rtw Block Type Counts
Variable/Record Name
Description
NumBlockTypeCounts

Number of different types of nonvirtual blocks in your model. A block type correlates to the MATLAB command
  get_param('block','BlockType').

BlockTypeCount {

One record for each block type count.

  Type

Type of the block (e.g., Gain).

  Count

Total number of the given type.

}

NumSFunctionNameCounts

Number of different S-functions used in your model. There will be one S-function for each MEX or M-function name specified in the S-function dialog. This will be less than or equal to the number of S-Function blocks in your model.

SFunctionNameCount {

One record for each S-function used in your model.

  Name

S-function name.

  Count

Total number of S-Function blocks using this S-function name.


  Target Properties External Inputs and Outputs