MaxMinInterval

This block outputs the minimum/maximum of all past input values between two subsequent input events. A Function parameter list provides functions to apply.

    MaxMinInterval

Library

Buffers

Description

This block outputs the minimum/maximum of all past input values between two subsequent input events. A Function parameter list provides functions to apply.

If the block is not activated by a discrete event, the block outputs the minimum/maximum of all past inputs values over the entire simulation time.

Parameters

MaxMinInterval_0

NameLabelDescriptionData TypeValid Values

mm

Function

Method to output all past input values between two subsequent input events

String

'Min'
'Max'

initial

(Re)Start value

At discrete event activation, the block output is reset to the Restart Value.

Matrix

depu

Direct feedthrough

Sets the direct feedthough of the block to true to ensure that when the block is called, the block inputs are up to date. If an algebraic loop occurs, deselect this option.

Number

0
1

externalActivation

Re-initialization event port

If selected, the minimum/maximum is computed between two subsequent discrete events. Otherwise the minimum/maximum is computed over the entire simulation time.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

yes

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

yes