ITrendStorageWriter.InitializeGetMinMaxTimestamps (METH) ¶ METHOD InitializeGetMinMaxTimestamps This method has to be called before method GetMinMaxTimestamps can be used. It provides some initial values for this method. InOut: Scope Name Type Comment Input liMinTimestamp LINT The minimum timestamp to set liAbsPacketStartTime LINT Sets the absolute start time of the 1st trace mgr packet
ITrendStorageWriter2 (ITF) ¶ INTERFACE ITrendStorageWriter2 EXTENDS ITrendStorageWriter Extension of interface to retrieve statistics about the writing process and to support notification about new data written to the trend storage. Methods: AddTrendStorageWriterListener GetStatistics RemoveTrendStorageWriterListener CanProvideMinMaxTimestamps , inherited from ITrendStorageWriter CreateTrendStorageMetaDataFile , inherited from ITrendStorageWriter GetMinMaxTimestamps , inherited from ITrendStorageWriter Initialize , inherited from ITrendStorageWriter InitializeGetMinMaxTimestamps , inherited from ITrendStorageWriter Structure: AddTrendStorageWriterListener (Method) GetStatistics (Method) RemoveTrendStorageWriterListener (Method)
ITrendStorageWriter2.AddTrendStorageWriterListener (METH) ¶ METHOD AddTrendStorageWriterListener : ETrendStorageReaderErrors Adds an ITrendStorageWriterListener instance. InOut: Scope Name Type Comment Return AddTrendStorageWriterListener ETrendStorageReaderErrors A ETrendStorageReaderErrors value indicating, whether the processing has been completed successfully or not: ETrendStorageReaderErrors.NoError: Completed successfully ETrendStorageReaderErrors.WrongParameter: If the ITrendStorageWriterListener instance is invalid ETrendStorageReaderErrors.NoMemory: If the ITrendStorageWriterListener instance cannot be stored, because no memory available Input itfTrendStorageWriterListener ITrendStorageWriterListener The ITrendStorageWriterListener instance to add
ITrendStorageWriter2.GetStatistics (METH) ¶ METHOD GetStatistics This method is used to access the statistics of the writing InOut: Scope Name Type Comment Output tAvgWriteTime TIME Returns the average time, that is needed to write to the trend storage tAvgCycleTime TIME Returns the average cycle time, when data is written to the trend storage
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
ETrendStorageGraphType (ENUM) ¶ TYPE ETrendStorageGraphType : This enumeration defines the possible graph types of the trend recording. Attributes: qualified_only InOut: Name Initial Comment LineWithPoints 1 A line with dots Cross 2 The samples are drawn with crosses. No line is drawn StepWithPoints 4 Steps with points at the samples Point 5 The samples are drawn with dots. No line is drawn Lines 8 A line without any other decoration Step 9 Steps without any other decoration LinesWithCrosses 10 A line with crosses at the samples StepWithCrosses 11 Steps with crosses at the samples
ETrendStoragePenStyle (ENUM) ¶ TYPE ETrendStoragePenStyle : This enumeration defines the possible line styles of the variables of the trend recording. Attributes: qualified_only InOut: Name Initial Comment Solid 0 A solid line Dashed 1 A dashed line Dotted 2 A dotted line DashDotted 3 A line with alternating dashed and dots DashDotDotted 4 A line with alternating dashed and 2 dots