ihuRetrieveCalculatedData

Use the ihuRetrieveCalculatedData function to return calculated data based on the raw samples stored in the archive. Average, Minimum, and Count are example CalculationMode values.

Prototype

ihuRetrieveCalculatedData {
  in long serverhandle,
  in IHU_timestamp StartTime,
  in IHU_timestamp EndTime,
  in ihuCalculationMode CalculationMode,
  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 ihuRetrieveCalculatedData 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.