ihuReadRawDataByCount
Use the ihuReadRawDataByCount
function to return the requested number of raw samples for a single tag going forward or backward in time from a specified time stamp. In cases where the number of samples available is less than the value specified in the number_of_samples
parameter, the function stops returning data.
Prototype
ihuReadRawDataByCount {
in long serverhandle,
in MSO Char *tagname,
in IHU_timestamp * StartTime,
in/out int * number_of_samples,
in int TimeForward,
out IHU_DATA_SAMPLE **data_values
};
Remarks
The time stamp, value, and quality of each raw sample are returned.
Returns
The ihuReadRawDataByCount
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.