Initialize, Reset, and Terminate Function Limitations

Unsupported Blocks

Initialize, Reset, 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, Reset, 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

Unsupported Features

Initialize, Reset, and Terminate Function blocks do not support:

  • Using variable-size signals

Component I/O Blocks

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 root level model with the Show model initialize port parameter selected can have blocks between the input and output ports.

See Also

Blocks

Related Topics