TrendFbTrendStorageWriterReader.GetMinMaxTimestampsFromBuffer (METH) ¶ METHOD GetMinMaxTimestampsFromBuffer : UDINT This method returns the min/max timestamps of the data in the local buffer InOut: Scope Name Type Comment Return GetMinMaxTimestampsFromBuffer UDINT An error code indicating, whether the processing was successful or not Output liMinTimestamp LINT Returns minimum timestamp liMaxTimestamp LINT Returns maximum timestamp
ITrendStorageWriterBufferClient ¶ BuildBuffer (Method) CleanBuffer (Method) InitializeBufferReader (Method)
TrendFbTrendStorageWriterReader.Initialize (METH) ¶ METHOD Initialize This method has to be called once before using the current instance InOut: Scope Name Type Comment Input udiCountSamples UDINT The maximum number of samples, that have to be read and passed to the attached ITraceMgrPacketReaderClient instance. itfTraceMgrPacketReaderClient ITraceMgrPacketReaderClient The ITraceMgrPacketReaderClient instance, that processes the data read from the trend storage. traceMgrPacket VisuStructTraceMgrPacket A VisuStructTraceMgrPacket variable, where the description of the ITraceMgrPacket and its variables read from the trend storage will be stored and passed to ITraceMgrPacketReaderClient instance. itfTrendRootPageManager ITrendRootPageManager An already initialized instance of ITrendRootPageManager, that is able to provide the root pages for tables and indexes
TrendFbTrendStorageWriterReader.Read (METH) ¶ METHOD Read : STO.ERROR Reads data from the trend storage and passes it to the ITraceMgrPacketReaderClient instance. Returns the error code of the underlying CAA storage database layer. InOut: Scope Name Type Comment Return Read STO.ERROR Input sPacketName STRING The name of the packet, that has been stored in the trend storage liTimestampFrom LINT The absolute timestamp of the 1st sample liTimestampTo LINT The absolute timestamp of the last sample liAbsPacketStartTime LINT The absolute start time of the 1st trace mgr packet, only if this parameter contains a value != 0. In this case both timestamp parameters are relative timestamps. If this parameter is 0 both timestamp parameters are absolute timestamps. xCloseTableAndStorage BOOL A flag indicating, whether the database and the table have to be kept open after reading the data (FALSE) or have to be closed (TRUE). The target visualization can leave the table and the storage open to have better performance.
TrendFbTrendStorageWriterReader.ReleaseDB (METH) ¶ METHOD ReleaseDB : STO.ERROR Method to call when it’s necessary to release the DB: close table, release handle InOut: Scope Name Type Return ReleaseDB STO.ERROR
TrendFbTrendStorageWriterReader.ShrinkMemory (METH) ¶ METHOD ShrinkMemory
ITrendStorageReaderConsumer.ErrorOccurred (METH) ¶ METHOD ErrorOccurred Notification, that an error occurred. InOut: Scope Name Type Comment Input eETrendStorageReaderErrors ETrendStorageReaderErrors The error, that occurred eDuringWhichStep ETrendStorageReaderStep Identifies the step, where the error occurred
ITrendStorageReaderConsumer.ReadingDataCompleted (METH) ¶ METHOD ReadingDataCompleted Notification, that reading the data (i.e. the values) has been completed.
ITrendStorageReaderConsumer.TimestampRead (METH) ¶ METHOD TimestampRead Notification, that a timestamp from TblTrendData has been read and can be processed. InOut: Scope Name Type Comment Input diWhichRow DINT A 0-based index of the row read from TblTrendData liTimestamp LINT The absolute timestamp, that was read from TblTrendData
ITrendStorageReaderConsumer.ValueRead (METH) ¶ METHOD ValueRead Notification, that a variable value from TblTrendData has been read and can be processed. InOut: Scope Name Type Comment Input diWhichRow DINT A 0-based index of the row read from TblTrendData. iWhichVariable INT A 0-based index of the variable within all variables liValue LINT The value, that was read from TblTrendData xValueNULL BOOL Indicates, whether NULL is stored in the trend storage