MMax('Expression','WindowInterval', 'UpdateInterval=timebase', 'Reset=0')

Arguments

'Expression'

Measured value, for which the maximum is formed

'WindowInterval'

Specification in seconds of the interval length over which the maximum should be calculated; must be a multiple of 'UpdateInterval'.

'UpdateInterval'

Optional parameter (default = time base); specifies in which cycle the calculation is performed.

'Reset'

Optional parameter (default = 0) to stop and restart the calculation

'Reset'=0

Perform calculation

'Reset'=1

Stop calculation, reset and set result to 0

'Reset'=2

Stop calculation and keep result

Description

This function returns the maximum of 'Expression' every 'UpdateInterval' seconds based on a floating window of 'WindowInterval' seconds.

The 'UpdateInterval' parameter is optional. If not specified then it is set equal to the time base of the function (i.e. as small as possible).

'WindowInterval' must be a multiple of 'UpdateInterval'. Otherwise, 'WindowInterval' is automatically changed to the first multiple of 'UpdateInterval' greater than or equal to 'WindowInterval.'