piar_interpvaluesfil

The count , start time in times[0] , end time in times[count-1] , and filter expression are passed to obtain an array of sampled Archive events. Interpolated values are used for resolution codes 1, 2, and 3 while the previous value is returned for resolution code 4 points. If there are two events for a single time, the first event in the Archive is returned. For points which are not of type real, rvals is meaningless and the value is returned in istats . For requests which require interpolation, the values are first interpolated over the specified time range and the results are then filtered. If sequential events fail the filter, only one Filtered (-244) status is returned for the sequence.

C format

int32 piar_interpvaluesfil(

int32 pt,

int32 PIPTR * count,

int32 times[],

float rvals[],

int32 istats[],

char PIPTR * expression );

Returns

>0

System error

Success

-1

Bad point number

-105

Bad time and date

-121

Invalid count parameter

-8xx

Expression Parsing Error

-9xx

Network Error

Arguments

pt (passed)

Point number

count (passed, returned)

Number of values

times (passed, returned)

Time stamps of values

rvals (returned)

Values in engineering units

istats (returned)

Integer or status values

expression (passed)

Expression string

Usage Notes

Enabling Operational Intelligence