Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

MedianFilt

  • Last UpdatedOct 04, 2024
  • 1 minute read

Return the median value of the last specified number of values of a time series.

Syntax

MedianFilt( tagname, runflag, number )

Arguments

tagname

Must be a numerical point.

runflag

Non-zero enables filter to run.

number

The number of series elements to be considered. A numeric constant greater than or equal to 3.

Returns

The median value of the last number values in the series of values.

Exceptions

Arguments whose run-time values are digital states are ignored. MedianFilt is not supported in the pipetest utility or in PI DataLink. If all values are digital states, MedianFilt returns an error value.

Example

MedianFilt('tag1', 1, 3)

In This Topic
TitleResults for “How to create a CRG?”Also Available in