Section 7: Command reference
Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-80
2651A-901-01 Rev. A / March 2011
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
Not saved
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 Model
2651A event log.
Output:
1.00000e00
0.00000e00
Also see
(on page 7-78)
(on page 7-80)
(on page 7-81)
eventlog.next()
This function returns the oldest message from the event log and removes it from the log.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
logString
= eventlog.next()
logString
The next log entry