msLoggerLevel (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-200, LX2

Firmware version:

1.50.00


Tell how full the specified logger buffer is in promille.

 

Input:

Logger : SYSHANDLE

A user provided handle to uniquely identify the logger. See SYSHANDLE page. This field is mandatory.

 

Returns: INT

0-1000

- Buffer full level. 0 means buffer is empty. 1000 means buffer is full.

-1

- Interface is not open. Call msOpen first.

-2

- Generic error.

-5

- The logger is not present.

 

 

Declaration

FUNCTION msLoggerLevel : INT;
VAR_INPUT
  Logger     : MANDATORY SYSHANDLE;
END_VAR;
 

Example:

// For a more complete example, see example under msReadEvent
...
logger_lvl := msLoggerLevel(logger:=logger[1]);
DebugFmt(message:="Logger #1 level is at \1", v1:=logger_lvl);
...