MedianInTime('Expression', 'Interval', ' Reset=0')

Arguments

'Expression'

Measured value, for which the median is formed

'Interval'

Specification of the length of the interval in seconds

'Reset’

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

'Reset' = 0

Perform calculation

'Reset' = 1

Stop calculation and set result to 0

'Reset' = 2

Stop calculation, delete all buffered data and keep result

'Reset' = 3

Calculate now and then stop calculation

Description

This function returns the median value per time segment of the 'interval' length of 'Expression' as its result. The signal is written to the RAM of the computer. After an interval has passed, the median value over this interval is evaluated.

Example

The following figure shows the calculation of the MedianInTime (blue) of a signal (red) and the impact of the parameter ‘Reset’ (green).