CWStatistics

Measurement Studio User Interface

CWStatistics

CWStatistics provides access to the statistics kept by the CWKnob and CWSlide controls. The three calculated statistics--minimum, maximum, and mean--are updated each time a pointer value is changed programmatically or graphically.

You can reset the minimum, maximum, and mean values with the Reset method. After resetting the values, minimum and maximum are calculated using only values collected since the last reset.

To continuously display any statistic for a specific pointer, set the mode on the CWPointer object either in the Pointer property page or programmatically.

Properties

MaximumReturns the maximum value of any pointer since the statistics were last reset.
MeanReturns the mean of the last 10 pointer values.
MinimumReturns the minimum value of any pointer since the statistics were last reset.

Methods

ResetResets the minimum, maximum, and mean statistics. After resetting the values, the system recalculates the minimum and maximum using only values collected since the last reset.

See Also

Statistics

CWPointer.Mode