Initialize Function, Reset Function, and Terminate Function blocks do not support:
Model blocks
Custom code blocks
Stateflow® charts
Resettable Subsystem blocks
Blocks with state, for example, Unit Delay blocks
Blocks with absolute time, for example, Clock blocks
MATLAB System blocks
MATLAB Function blocks which use persistent or global data. However, MATLAB Function blocks without persistent or global data are supported.
Initialize Function, Reset Function, and Terminate Function blocks cannot call Simulink Function blocks with:
Input or output ports
An Initialize Function, Reset Function, or Terminate Function block
Unsupported blocks
Initialize Function, Reset Function, and Terminate Function blocks do not support:
Using variable-size signals
The input and output ports of a model component containing Initialize Function, Reset Function, or Terminate Function blocks must connect to root Inport and Outport blocks without intervening blocks.
In this example, an Initialize Function block is placed in a Subsystem block. The model containing the Subsystem block is referenced from a model that is referenced from the root level model. Only the top-level model with the Show model initialize port parameter selected can have blocks between the input and output ports.