8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-54 2450-901-01 Rev. B/September 2013
eventlog.clear()
This command clears the event log.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
eventlog.clear()
Details
This function removes all messages from the event log.
Also see
eventlog.next() (on page 8-55)
eventlog.save() (on page 8-57)
eventlog.getcount()
This function returns the number of errors in the event log.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
eventlog.getcount()
eventlog.getcount(mask)
Limits the list of event log entries; set to:
• Errors only: eventlog.SEV_ERROR
• Warnings only: eventlog.SEV_WARN
• Information only: eventlog.SEV_INFO
•
All events: eventlog.SEV_ALL
Details
You can use the mask parameter to limit the event log items that are counted.
This command does not clear the event log.
Example
print(eventlog.getcount(eventlog.SEV_INFO))
Displays the present number of information
messages in the instrument event log.
If there are three information messages in
the event log, output is:
Also see
eventlog.clear() (on page 8-54)
eventlog.next() (on page 8-55)