Main Content

Reset

Control block for resettable subsystem

  • Reset block

Description

A Reset block placed at the root level of a Subsystem block adds a control port to the block. When a reset trigger signal occurs on the signal connected to the port, the block states of the subsystem are reset to their initial condition. See Resettable Subsystem.

Parameters

expand all

Select the type of trigger signal that resets the subsystem block states.

level

Reset the block states when the trigger signal is nonzero at the current time step or changes from nonzero at the previous time step to zero at the current time step.

rising

Reset the block states when the trigger signal rises from a zero to a positive value or from a negative to a positive value.

falling

Reset the block states when the trigger signal falls from a positive value to zero or from a positive to a negative value.

either

Reset the block states when the trigger signal changes from a zero to a nonzero value or changes sign.

level hold

Reset the block states when the trigger signal is nonzero at the current time step.

Programmatic Use

Block Parameter: ResetTriggerType
Type: character vector
Value: 'level' | 'rising' | 'falling' | 'either' | 'level hold'
Default: 'level'

Select when to propagate a variable-size signal.

During execution

Propagate variable-size signals at each time step.

Only when resetting

Propagate variable-size signals when resetting a Subsystem block containing a Reset port block. When you select this option, sample time must be periodic.

Programmatic Use

Block Parameter: PropagateVarSize
Type: character vector
Value: 'During execution' | 'Only when resetting'
Default: 'During execution'

Control zero-crossing detection.

on

Detect zero crossings.

off

Do not detect zero crossings.

Programmatic Use

Block Parameter: ZeroCross
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Extended Capabilities

Version History

Introduced in R2015a