Hysteresis

This block implements a hysteresis behavior. The output switches between two values specified by parameters depending on the state of the block (on or off). When the block is on, it remains on until the input drops below the value of the Switch off point parameter. When it is off, it remains off until the input exceeds the value of the Switch on point parameter.

    Hysteresis

Library

Hybrid

Description

This block implements a hysteresis behavior. The output switches between two values specified by parameters depending on the state of the block (on or off). When the block is on, it remains on until the input drops below the value of the Switch off point parameter. When it is off, it remains off until the input exceeds the value of the Switch on point parameter. Only double data type is allowed.

Parameters

Hysteresis_0

NameLabelDescriptionData TypeValid Values

high_lim

Switch on at

The block is switched ON when the input increases and exceeds this parameter.

Matrix

low_lim

Switch off at

The block is switched OFF when the input decreases and goes below this parameter.

Matrix

out_high

Output when on

Output value when this block is ON.

Matrix

out_low

Output when off

Output value when this block is OFF.

Matrix

initout

Initial state off/on (0/1)

Specifies the switch state at initial time. The initial state in particular useful if the input value at initial time is between low-limit and high-limit. In other cases the initial state is computed as a function of input values and given value is ignored.

Matrix

zc

Apply zero crossing

Enabling this option allows get more precise result at switching instants.

Scalar

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

yes

Depends on parameters.

mode

no

continuous-time state

no

discrete-time state

no