Related pages:
unsigned int _stdcall ReadStoredData(StationPar *St, D2Time FromTime, D2Time ToTime, int TransId, D2Time *NextFromTime)
St | Pointer to the StationPar structure. |
FromTime | Beginning of time interval that contains required data. |
ToTime | End of time interval that contains required data. |
TransID | Transaction identifier that is defined as a parameter of the function PointOldValue. |
NextFromTime | Using the parameter allows the user to split the reading historical values into several periods (their number is optional). A nonzero time value of the parameter means that the reading was finished for the values with the timestamp and older. The system will generate the next calling the function ReadStoredData where the value of the parameter FromTime is equal to the value of the parameter NextFromTime. Zero value of the parameter NextFromTime means that calling the function ReadStoredData is finished. The method allows to divide the reading of historical values, which takes a long time, into several intervals and to use the time between individual intervals for reading the current values. |
Ignoring the function is performed by writing 0.0 into the parameter NextFromTime and the function return code RQ_IGNORED. The values, gained by this calling, must be sent by using the call-back function PointOldValue.
Related pages:
Pridať komentár