This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Reset

Add reset port to subsystem

  • Library:
  • Ports & Subsystems

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.

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'

Introduced in R2015a