Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.GetStatistic [Method]

IPen.GetStatistic [Method]

Returns the result of a specified Process Analyst statistical operation.

Defined As

Parameters

name

[in] Specify the statistic attribute you want to get the value for. See Remarks below for supported attributes.

value

[out] Indicates the value of the specified statistic attribute.

Execution Result

If the function succeeds, the return value will be Success. If an argument is bad, the return value will be InvalidArgument. If the attribute does not exist, the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure. If any other unexpected error occurs, the return value will be GeneralFailure.

Information Attributes

Attribute Returns Applies to

Average

Process Analyst real-time average

Analog, Digital

Maximum

Process Analyst real-time maximum

Analog

Minimum

Process Analyst real-time minimum

Analog

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
Dim average As String
pen.GetStatistic "Average", average
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
STRING average;
_ObjectCallMethod(hPen, "GetStastic", "Average", average);
END