7½ Digit Graphical Sampling Multimeter Reference Manual Section 8:
DMM7510-901-01 Rev. B / May 2015 8-205
Example
print(eventlog.getcount(eventlog.SEV_INFO))
Displays the present number of unread
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-204)
eventlog.next() (on page 8-205)
localnode.showevents (on page 8-227)
Using the event log (on page 2-154)
eventlog.next()
This function returns the oldest unread event message from the event log.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
eventNumber, message, severity, nodeID, timeSeconds, timeNanoSeconds =
eventlog.next()
eventNumber, message, severity, nodeID, timeSeconds, timeNanoSeconds =
eventlog.next(eventType)
A description of the event
The severity of the event,
• Error: 1
• Warning: 2
•
The TSP-Link node where the event occurred or 0 if the event occurred on the local
node
The seconds portion of the time when the event occurred
The fractional seconds portion of the time when the event occurred
Limits the return to specific event log types; set a cumulative integer value that
represents the event log types to:
• Errors only: eventlog.SEV_ERROR or 1
• Warnings only: eventlog.SEV_WARN or 2
• Errors and warnings only: eventlog.SEV_WARN|eventlog.SEV_ERROR or
3
• Information only: eventlog.SEV_INFO or 4
• Errors and information only: eventlog.SEV_INFO|eventlog.SEV_ERROR
or 5
• Warnings and information only:
eventlog.SEV_INFO|eventlog.SEV_WARN or 6
•
All events: eventlog.SEV_ALL or 7