ITrendStorageWriter.GetMinMaxTimestamps (METH)

METHOD GetMinMaxTimestamps : STO.ERROR

This method is an optimization for a functionality, that is normally provided by a function block, that reads the trend storage. It is possible, because an ITrendStorageWriter knows both the minimum and maximum timestamp, that has been written in the trend storage. Rem.: This is not quite correct. The maximum timestamp is always available, because during writing to the trend storage the maximum timestamp can be determined easily. For the minimum timestamp is more logic available. - If no cicurlar trend storage is in use the minimum timestamp has to be set once

by calling method SetMinTimestamp.

  • In case of a circular trend storage the minimum timestamp will be determined during deleting the oldest records

Before using this method the method InitializeGetMinMaxTimestamps has to be called. The return value of the method indicates, whether the processing was successful. Normally always STO.ERROR.NO_ERROR will be returned. If the previous call to InitializeGetMinMaxTimestamps is missing ERR_NOTINITIALIZED will be returned

InOut:

Scope

Name

Type

Comment

Return

GetMinMaxTimestamps

STO.ERROR

Output

liMinTimestamp

LINT

Returns minimum timestamp

liMaxTimestamp

LINT

Returns maximum timestamp

liAbsPacketStartTime

LINT

Returns the absolute start time of the 1st trace mgr packet