logClear (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


logClear will remove any records in the Datalogger memory. The selected number of values and number of records that was used during the call to logInitialize() will still be preserved. The Datalogger will simply be empty.

 

Input:

handle : SYSHANDLE

A handle to the Datalogger to clear. If not provided, it will clear the flash-based log. Only supported on NX32L with firmware 1.50.00 or newer.

 

Returns: INT

 

0

- Successful.

4

- Log is not initialized.

6

- Failed to read log.

7

- The log could not be found.

8

- The log is not writable.

10

- Failed to write to log.

 

 

Declaration:

FUNCTION logClear : INT;
VAR_INPUT
  handle     : SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Clear the logsystem, after this call, no records will be present in the Datalogger
  logClear();
  ...
END;
 
END_PROGRAM;