Reset Function

Executes contents on a model reset event

  • Library:
  • Simulink / User-Defined Functions

  • Reset Function block

Description

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 fully supported within Terminate 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.

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

no

Multidimensional Signals

limited[a]

Variable-Size Signals

no

Zero-Crossing Detection

no

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

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.