ihuRetrieveSampledData
Use the ihuRetrieveSampledData
function to return sampled data based on the raw samples stored in the archive. Interpolated
, Trend
, and Lab
are example SamplingMode
values.
Prototype
ihuRetrieveSampledData {
in long serverhandle,
in IHU_timestamp StartTime,
in IHU_timestamp EndTime,
in ihuSamplingMode SamplingMode,
in unsigned long NumberOfSamples,
in unsigned long IntervalMilliseconds,
in/out IHU_RETRIEVED_DATA_RECORDS *DataRecords
};
Remarks
To request data, you can specify a number of samples or a time interval. Set one parameter to a non-zero value and the other to 0
. To split the duration, divide the time from start to finish into evenly spaced time intervals.
Returns
The ihuRetrieveSampledData
function returns ihuSTATUS_OK
when values are successfully retrieved.
Errors are returned on read timeouts, when the user is not a member of the ih Readers security group, or if the tag is not found.