pisn_getsnapshot

This function retrieves the most recent value sent to the pi System for a particular point. The snapshot value in engineering units, status code, time, and date are returned. If the point type is not real, the value is returned in istat and the rval argument is returned as 0.

C format

int32 pisn_getsnapshot(

int32 pt,

float PIPTR * rval,

int32 PIPTR * istat,

int32 PIPTR * timedate );

Returns

>0

System error

0

Success

-1

Point does not exist

Arguments

pt (passed)

Point number

rval (returned)

Value in engineering units, undefined for integer and digital points

istat (returned)

Status for type real points and value for integer and digital points

timedate (returned)

Time stamp

Usage Notes

Enabling Operational Intelligence