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.
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mm | Function | String | 'Min' | |
initial | (Re)Start value | At discrete event activation, the block output is reset to the Restart Value. | Matrix | |
depu | Direct feedthrough | Sets the direct-feed-though of the block true. This allows being sure that when the block is called the block inputs are up to date. In case of algebraic loop, this checkbox can be off. | Number | 0 |
externalActivation | Re-initialization event port | If checked the minimum/maximum is computed between two subsequent discrete events. Otherwise the mimimum/maximum is computed over the entire simulation time. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | yes | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | yes |