![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_reference-manual_4033478588.webp)
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-57
eventlog.save()
This function saves the event log to a file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
eventlog.save(
filename
)
eventlog.save(
filename, eventMask
)
filename
A string that represents the name of the file to be saved
eventMask
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
This command saves all event log entries since the last clear command to a USB flash drive.
You must insert the USB flash drive before sending this command.
If you do not define an event type, the instrument saves all event log entries.
The extension .csv is automatically added to the file name.
Example
eventlog.save("WarningsApril", eventlog.SEV_WARN)
Save warning messages to a
.csv
file
on a USB flash drive
Also see
exit()
This function stops a script that is presently running.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
exit()
Details
Terminates script execution when called from a script that is being executed.
This command does not wait for overlapped commands to complete before terminating script execution. If
overlapped commands are required to finish, use the
waitcomplete()
function before calling
exit()
.
Also see
(on page 8-252)