eventlog

The eventlog commands module.

These commands are used in the following models: SMU2601B, SMU2602B, SMU2604B, SMU2606B, SMU2611B, SMU2612B, SMU2614B, SMU2634B, SMU2635B, SMU2636B, SMU2651A, SMU2657A

THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

Please report an issue if one is found.

Attributes and Functions
- eventlog.all()
- eventlog.clear()
- eventlog.count
- eventlog.enable
- eventlog.next()
- eventlog.overwritemethod

Eventlog

Bases: BaseTSPCmd

The eventlog command tree.

Constants
  • .DISABLE: Disable the event log.
  • .DISCARD_NEWEST: Do not log new entries.
  • .DISCARD_OLDEST: Delete old entries are deleted as new events are logged.
  • .ENABLE: Enable the event log.
Properties and methods
  • .all(): The eventlog.all() function.
  • .clear(): The eventlog.clear() function.
  • .count: The eventlog.count attribute.
  • .enable: The eventlog.enable attribute.
  • .next(): The eventlog.next() function.
  • .overwritemethod: The eventlog.overwritemethod attribute.

DISABLE class-attribute instance-attribute

DISABLE = 'eventlog.DISABLE'

DISCARD_NEWEST class-attribute instance-attribute

DISCARD_NEWEST = 'eventlog.DISCARD_NEWEST'

DISCARD_OLDEST class-attribute instance-attribute

DISCARD_OLDEST = 'eventlog.DISCARD_OLDEST'

ENABLE class-attribute instance-attribute

ENABLE = 'eventlog.ENABLE'

count property

count: str

Access the eventlog.count attribute.

Description
  • This attribute returns the number of unread events in the event log.
Usage
  • Accessing this property will send the print(eventlog.count) query.
TSP Syntax
- print(eventlog.count)
Raises:

enable property writable

enable: str

Access the eventlog.enable attribute.

Description
  • This attribute enables or disables the event log.
Usage
  • Accessing this property will send the print(eventlog.enable) query.
  • Setting this property to a value will send the eventlog.enable = value command.
TSP Syntax
- eventlog.enable = value
- print(eventlog.enable)
Raises:

overwritemethod property writable

overwritemethod: str

Access the eventlog.overwritemethod attribute.

Description
  • This attribute controls how the event log processes events if the event log is full.
Usage
  • Accessing this property will send the print(eventlog.overwritemethod) query.
  • Setting this property to a value will send the eventlog.overwritemethod = value command.
TSP Syntax
- eventlog.overwritemethod = value
- print(eventlog.overwritemethod)
Info
  • method, the set to one of the following values:

    • 0 or eventlog.DISCARD_NEWEST: New entries are not logged
    • 1 or eventlog.DISCARD_OLDEST: Old entries are deleted as new events are logged.
Raises:

all

all() -> str

Run the eventlog.all() function.

Description
  • This function returns all entries from the event log as a single string and removes them from the event log.
TSP Syntax
- eventlog.all()
Returns:
  • str

    The result of the function call.

Raises:

clear

clear() -> None

Run the eventlog.clear() function.

Description
  • This function clears the event log.
TSP Syntax
- eventlog.clear()
Raises:

next

next() -> str

Run the eventlog.next() function.

Description
  • This function returns the oldest unread event message from the event log and removes it from the event log.
TSP Syntax
- eventlog.next()
Returns:
  • str

    The result of the function call.

Raises: