logInitialize (Function) |
Top Previous Next |
logInitialize initializes the memory used for the Datalogger. Whenever this function is called, any data already present in the Datalogger memory will be deleted. In order to detect if the Datalogger memory is already configured, use the functions logIsInitialized(), logMaxNumOfRecords(), and logValuesPerRecord(). The supplied key-value is checked when logIsInitialized() is called, which will only return true if the key-value is the same as used in the logIsInitialized() function call.
To create file- or memory-based Dataloggers, please use logCreate or logCreateMem.
Input: numlogvalues : SINT (0..8) Number of values that are logged in each record.
numlogrecords : DINT (0..65535) Number of records that should be contained in the Datalogger (before wrap-around). If 0 is specified on the number of records will be the maximum number available (depends on the "numlogvalues").
key : DINT User-defined key-value.
Returns: BOOL True if successful, false if there is no room for the specified number of records/number of values.
Declaration: FUNCTION logInitialize : BOOL;
Example: INCLUDE rtcu.inc |