Main Content

Reset Function

Execute subsystem on model reset event

  • Library:
  • Simulink / User-Defined Functions

  • Reset Function block


The Reset Function block is a pre-configured Subsystem block that executes on a model reset event. By default, the Reset Function block includes an Event Listener block with Event set to Reset, a Constant block with Constant value set to 0, and a State Writer block.

Replace the Constant block with source blocks that generate the state value for the State Writer block.

Conditionally executed subsystem blocks with output ports are fully supported within Reset Function blocks.

For a list of unsupported blocks and features, see Initialize, Reset, and Terminate Function Limitations.

A model can potentially have multiple Reset Function blocks with each block having a different Event name. Each of these reset events appear in the generated code as a different function.

You can select an Initialize Function, Reset Function, or Terminate Function block or a corresponding state owner block to highlight blocks related to it. To show a related block in an open diagram or new tab, pause on the ellipsis that appears after selection. Then, select Related Blocks Related Blocks button from the action bar. When multiple blocks correspond to the selected block, a list of related blocks opens. You can filter the list of related blocks by entering a search term in the text box. After you select a related block from the list, window focus goes to the open diagram or new tab that shows the related block.

Block Characteristics

Data Types

Boolean[a] | bus[a] | double[a] | enumerated[a] | fixed point[a] | half[a] | integer[a] | single[a] | string[a]

Direct Feedthrough


Multidimensional Signals


Variable-Size Signals


Zero-Crossing Detection


[a] Actual data type or capability support depends on block implementation.

Extended Capabilities