pisn_getsnapshots

This function retrieves the most recent values sent to the pi System for an array of points. The snapshot values in engineering units, status codes, times, dates, and errors are returned in the passed parallel arrays. 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_getsnapshots(

int32 PIPTR * pt

float PIPTR * rval,

int32 PIPTR * istat,

int32 PIPTR * timedate,

int32 PIPTR * error,

int32 count );

Returns

>0

System error

0

Success

-1

Point not found

Arguments

pt (passed)

Array of point numbers

rval (returned)

Array of values in engineering units, undefined for integer and digital points

istat (returned)

Array of statuses for type real points and values for integer and digital points

timedate (returned)

Array of time stamps

error (returned)

Array of error codes

count(passed)

Size of the arrays

Usage Notes

Enabling Operational Intelligence