
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-87
eventlog.enable
This attribute enables or disables the event log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Instrument reset
Recall setup
Not saved
1 (eventlog.ENABLE)
Usage
status
= eventlog.enable
eventlog.enable =
status
status
The enable status of the event log:
1
or
eventlog.ENABLE
: Event log enable
0
or
eventlog.DISABLE
: Event log disable
Details
When the event log is disabled (
eventlog.DISABLE
or
0
), no new events are added to the event
log. You can, however, read and remove existing events.
When the event log is enabled, new events are logged.
Example
print(eventlog.enable)
eventlog.enable = eventlog.DISABLE
print(eventlog.enable)
Displays the present status of the 2606B
event log.
Output:
1.00
0.00
Also see
(on page 7-86)
(on page 7-86)
(on page 7-88)
eventlog.next()
This function returns the oldest unread event message from the event log and removes it from the event log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
logString
= eventlog.next()
logString
The next log entry
Details
Returns the next entry from the event log and removes it from the log.
If there are no entries in the event log, returns the value
nil
.