Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
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:
3
Also see
(on page 8-204)
(on page 8-227)
(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
Function
Yes
Usage
eventNumber
,
message
,
severity
,
nodeID
,
timeSeconds
,
timeNanoSeconds
=
eventlog.next()
eventNumber
,
message
,
severity
,
nodeID
,
timeSeconds
,
timeNanoSeconds
=
eventlog.next(
eventType
)
eventNumber
The event number
message
A description of the event
severity
The severity of the event,
•
Error:
1
•
Warning:
2
•
Information:
4
nodeID
The TSP-Link node where the event occurred or
0
if the event occurred on the local
node
timeSeconds
The seconds portion of the time when the event occurred
timeNanoSeconds
The fractional seconds portion of the time when the event occurred
eventType
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