Documentation

Reset

Add reset port to subsystem

  • Library:
  • Ports & Subsystems

Description

A Reset block at the root leavel of a Subsystem block adds a control port to the block. When a reset trigger event 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 event that resets the subsystem block states.

level

Reset the block states when the reset 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 reset signal rises from a zero to a positive value or from a negative to a positive value.

falling

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

either

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

level hold

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

Programmatic Use

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 resettinging

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

Was this topic helpful?