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
ITrendStorageWriterBufferClient.CleanBuffer (METH) ¶ METHOD CleanBuffer
ITrendStorageWriterBufferClient.InitializeBufferReader (METH) ¶ METHOD InitializeBufferReader This method will be called to initialize the according buffer client object. Please remark that it might be called several times (maybe initially and after each call to ITrendStorageWriterSupportsBufferClients.AttachBufferClient ) but with similar arguments so it is ok to ignore possible afterwards calls. Additionally it should be synchronized internally as calls are possible from both the task of the trendrecording as well as from the task calling ITrendStorageWriterSupportsBufferClients.AttachBufferClient InOut: Scope Name Type Comment Input xHasToSwap BOOL Indicates, whether the data has to be swapped or not pAbsoluteTimestampProvider POINTER TO TrendFbAbsoluteTimestampProvider Instance, that converts relative timestamps to absolute timestamps paitfTraceMgrVariables POINTER TO ARRAY [0..0] OF ITraceMgrVariable The variables of the trend recording iCountVariables INT The effective size of the array above udiCountSamples UDINT The number of samples, that the trend element displays
ITrendStorageWriterSupportsBufferClients (ITF) ¶ INTERFACE ITrendStorageWriterSupportsBufferClients This interface can optionally be implemented by implementations of ITrendStorageWriter if they supports clients accessing that want to be notified about buffer modifications. Methods: AttachBufferClient DetachBufferClient Structure: AttachBufferClient (Method) DetachBufferClient (Method)
ITrendStorageWriterSupportsBufferClients.AttachBufferClient (METH) ¶ METHOD AttachBufferClient : ETrendStorageReaderErrors Attaches an ITrendStorageWriterBufferClient instance. InOut: Scope Name Type Comment Return AttachBufferClient ETrendStorageReaderErrors A ETrendStorageReaderErrors value indicating, whether the processing has been completed successfully or not: ETrendStorageReaderErrors.NoError: Completed successfully ETrendStorageReaderErrors.WrongParameter: If the ITrendStorageWriterBufferClient instance is invalid ETrendStorageReaderErrors.NoMemory: If the ITrendStorageWriterBufferClient instance cannot be stored, because no memory available Input itfBufferClient ITrendStorageWriterBufferClient The ITrendStorageWriterListener instance to add
ITrendStorageWriterSupportsBufferClients.DetachBufferClient (METH) ¶ METHOD DetachBufferClient : ETrendStorageReaderErrors Removes an ITrendStorageWriterBufferClient instance. InOut: Scope Name Type Comment Return DetachBufferClient ETrendStorageReaderErrors A ETrendStorageReaderErrors value indicating, whether the processing has been completed successfully or not: ETrendStorageReaderErrors.NoError: Completed successfully ETrendStorageReaderErrors.WrongParameter: If the ITrendStorageWriterBufferClient instance is invalid ETrendStorageReaderErrors.NoObject: If the ITrendStorageWriterBufferClient instance cannot be removed, because was not found, i.e. has not been added with method AttachBufferClient Input itfBufferClient ITrendStorageWriterBufferClient The ITrendStorageWriterBufferClient instance to add
TrendFbDatabaseAccessErrorHandler (FB) ¶ FUNCTION_BLOCK TrendFbDatabaseAccessErrorHandler This function block performs the error handling for all access to the underlying SQLite database InOut: Scope Name Type Comment Input m_uiDiskFullDatabaseAccessSuspendTime UINT This member defines the behaviour of access to the underlying SQLite database in case of a ‘disk full’ event (normally indicated by an error code SQLITE_IOERR). 0: Starting from the first occurrence of an error code SQLITE_IOERR no more database access will be performed A positive value N: Starting from the first occurrence of an error code SQLITE_IOERR no more database access will be performed for N seconds Methods: ErrorHandling IsDatabaseAccessEnabled SQLiteErrorHandling prvGetActionName prvGetErrorDescription prvGetFunctionName Structure: ErrorHandling (Method) IsDatabaseAccessEnabled (Method) SQLiteErrorHandling (Method) private prvGetActionName (Method) prvGetErrorDescription (Method) prvGetFunctionName (Method)
TrendFbDatabaseAccessErrorHandler.ErrorHandling (METH) ¶ METHOD ErrorHandling This method is used to do the error processing. It writes an error message with an error code to the console. InOut: Scope Name Type Comment Input iFunction INT An int describing the method or function, where the error occurred iErrCode INT The error code describing, what failed
ITrendStorageWriter.CreateTrendStorageMetaDataFile (METH) ¶ METHOD CreateTrendStorageMetaDataFile This method evaluates an existing trend storage file and creates a metadata file containing information about the trend storage like file version, number of columns of the data table, … InOut: Scope Name Type Comment Input itfTraceMgrPacket ITraceMgrPacket An instance of ITraceMgrPacket describing the trace mgr packet, that will be written to the trend storage