ihuReadRawDataByTime

Use the ihuReadRawDataByTime function to return multiple raw samples for a single tag in a specified time range.

Prototype

ihuReadRawDataByTime {
  in long serverhandle,
  in MSO Char * tagname,
  in IHU_timestamp * StartTime,
  in IHU_timestamp * EndTime,
  out int * number_of_samples,
  out IHU_DATA_SAMPLE **data_values
};

Remarks

The time stamp, value, and quality of each raw sample are returned.

Returns

The ihuReadRawDataByTime 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.