Technical data
model.rtw
A-5
NumIWork
Length of the model integer-work vector (iwork). Integer-work 
elements are used by blocks that need to keep track of “integer” 
variables between simulation steps. An example of a block that 
uses integer-work elements is the Discrete Time Integrator block 
configured with an external initial condition source. The 
integer-work element is used as a Boolean to determine when to 
load the initial condition.
NumPWork
Length of the model pointer-work vector (pwork). Pointer-work 
elements are used by blocks that need to keep track of “pointer” 
variables between simulation steps. An example of a block that 
uses pointer-work elements is the To Workspace block, which 
uses a pointer-work element to keep track of logged data.
NumDataStoreElements
Total number of data store elements. This is the sum of the 
widths of all data store memory blocks in your model.
NumBlockSignals
Sum of the widths of all output ports of all nonvirtual blocks in 
the model. This is the length of the block I/O vector, 
blockIO.
NumBlockParams
Number of modifiable parameter elements (params). For example, 
the Gain block parameter contains modifiable parameter 
elements.
NumAlgebraicLoops
Number of algebraic loops in the model.
InvariantConstants
yes
 if invariant constants (i.e., inline-parameters) is “on”, no if 
invariant constants is off.
FundamentalStepSize
Fundamental step size or 0.0 if one cannot be determined. 
Variable step solvers may have a fundamental step size of 0.0.
NumSampleTimes
Number of sample times in the model followed by SampleTime 
info records, giving the 
TID (task ID), an index into the sample 
time table, and the period and offset for the sample time.
SampleTime {
One record for each sample time.
TID
Task ID for this sample time.
Table A-1: Model.rtw File Contents (Continued)
Variable/Record Name Description










