TrendFctSetRecordSizeFactor (FUN) ¶ FUNCTION TrendFctSetRecordSizeFactor This function sets the factor for changing the record size used to control the size of the DB: the number of records to be deleted at each reorganisation is calculated on the basis of an empirically calculated size, this size can be changed by this factor. InOut: Scope Name Type Comment Input sPacketName STRING A string containing the name of the trace mgr packet rFactor REAL Value of the factor
ITrendStorageAccessReadOperator.ActivateMaxWarningRead (METH) ¶ METHOD ActivateMaxWarningRead Notification, that the option “activate max warning” a variable was read from table TblTrendConfiguration. InOut: Scope Name Type Comment Input iWhichVariable INT The 0 based index of the variable within all variables xActivateMaxWarning BOOL The value fo the option
ITrendStorageAccessReadOperator.ActivateMinWarningRead (METH) ¶ METHOD ActivateMinWarningRead Notification, that the option “activate min warning” a variable was read from table TblTrendConfiguration. InOut: Scope Name Type Comment Input iWhichVariable INT The 0 based index of the variable within all variables xActivateMinWarning BOOL The value fo the option
ITrendStorageAccessReadOperator.AfterReadingVariableConfiguration (METH) ¶ METHOD AfterReadingVariableConfiguration Notification, that reading the variable configuration from table TblTrendConfiguration has been completed. InOut: Scope Name Type Comment Input iWhichCall INT The 1-based index of the reading, i.e. of call to method prvTblTrendConfigurationGetConfig xChangeOfConfig BOOL This flag indicates, whether the given timestamp range of method Read spans more than one configuration, i.e. subsequent calls to method prvTblTrendConfigurationGetConfig will be done. Inout iCountVariables INT The number of variables of the corresponding trace manager packet, that will be read by method prvTblTrendConfigurationGetConfig
TrendStorageCache ¶ TrendStorageCacheItemData (FunctionBlock)
TrendStorageCacheItemData (FB) ¶ FUNCTION_BLOCK TrendStorageCacheItemData EXTENDS fbf.InstanceData InOut: Scope Name Type Inherited from Input hInst CAA.HANDLE InstanceData bActive BOOL stAppName STRING
TrendStorageConvertFromTimestamp (FUN) ¶ FUNCTION TrendStorageConvertFromTimestamp Converts a timestamp into a SYSTIMEDATE (UTC value) and extracts also the microseconds- InOut: Scope Name Type Comment Input liTimestamp LINT Output timeDate SYSTIMEDATE Returns a SYSTIMEDATE struct containing the date and time uiMicroseconds UINT Returns the microseconds of the timestamp
TrendStorageConvertToTimestamp (FUN) ¶ FUNCTION TrendStorageConvertToTimestamp : LINT This function provides the inverse functionality of function TrendStorageConvertFromTimestamp. Converts SYSTIMEDATE (UTC value) and a microsecond into a timestamp. InOut: Scope Name Type Comment Return TrendStorageConvertToTimestamp LINT The timestamp in the trend storage format. Input timeDate SYSTIMEDATE A SYSTIMEDATE struct containing the date and time (UTC) uiMicroseconds UINT the microseconds of the timestamp
TrendStorageReader (FB) ¶ FUNCTION_BLOCK TrendStorageReader EXTENDS TrendFbAbstractTrendStorageReader IMPLEMENTS ITrendStorageAccessReadOperator2 This function block can be used from the application code to access the trend storage Methods: AddTrendStorageWriterListener ContinueReading GetMinMaxTimestamps Initialize Read RemoveTrendStorageWriterListener CurveFillingAlphaRead CurveFillingColorRead CurveFillingTypeRead CurveTypeRead DoContinueReading GradientAngleRead GradientBrightnessRead GradientCenterXRead GradientCenterYRead GradientColor1Read GradientColor2Read GradientColorBrightnessRead GradientTranspColor1Read GradientTranspColor2Read GradientTypeRead GradientUseTwoColorsRead LineStyleRead LineWidthRead Structure: AddTrendStorageWriterListener (Method) ContinueReading (Method) GetMinMaxTimestamps (Method) ITrendStorageAccessReadOperator DoContinueReading (Method) prvTblTrendConfigurationGetConfig LineStyleRead (Method) LineWidthRead (Method) ITrendStorageAccessReadOperator2 CurveFillingAlphaRead (Method) CurveFillingColorRead (Method) CurveFillingTypeRead (Method) CurveTypeRead (Method) GradientAngleRead (Method) GradientBrightnessRead (Method) GradientCenterXRead (Method) GradientCenterYRead (Method) GradientColor1Read (Method) GradientColor2Read (Method) GradientColorBrightnessRead (Method) GradientTranspColor1Read (Method) GradientTranspColor2Read (Method) GradientTypeRead (Method) GradientUseTwoColorsRead (Method) Initialize (Method) Read (Method) RemoveTrendStorageWriterListener (Method)
TrendStorageReader.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 An instance of ITrendStorageWriterListener, that will be informed every time, when new data has been written into the trend storage