logCreate (Function) |
Top Previous Next |
logCreate creates a new Datalogger in a file on the file system. The maximum size of a datalogger is 64MB.
Input: filename : STRING The path to the file to create. The file must be placed in the B:\SYSTEM\DATALOGS\ folder.
rec_size : INT The maximum size of each record in bytes. This does not include the data for the timestamp, tag and other fixed data.
rec_count : DINT 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 "rec_size").
key : DINT User-defined key-value.
Output: handle : SYSHANDLE A handle to the created datalogger.
Returns: INT
Declaration: FUNCTION logCreate : INT;
Example: INCLUDE rtcu.inc |