Initialize, Reinitialize, Reset, and Terminate Function Limitations
Unsupported Blocks
Initialize Function, Reinitialize 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, Reinitialize Function, Reset Function, and Terminate Function blocks cannot call Simulink Function blocks with:
Input or output ports
An Initialize Function, Reinitialize Function, Reset Function, or Terminate Function block
Unsupported blocks
Unsupported Features
Initialize Function, Reinitialize Function, Reset Function, and Terminate Function blocks do not support:
Using variable-size signals
Component I/O Blocks
The input ports of a model component containing Initialize Function, Reinitialize Function, or Reset Function blocks must connect to root Inport blocks without intervening blocks, and the output ports of a model component containing a Reset Function or Terminate Function blocks must connect to root Outport blocks without intervening blocks.
If a model containing an Initialize Function, Reinitialize Function, Reset Function, or Terminate Function block is an export-function model, the signal from the root Inport must not be branched to a Simulink Function block. If the model is not an export-function model, the signal from the root Inport must not be branched to any other block.
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.
See Also
Blocks
- Initialize Function | Reinitialize Function | Reset Function | Terminate Function | Event Listener | State Reader | State Writer | Parameter Writer