Model 2450 Interactive SourceMeter® Instrument Reference Manual
eventlog.save()
This function saves the event log to a file.
Type
TSP-Link accessible
Function
Yes
Usage
eventlog.save(filename)
eventlog.save(filename, eventMask)
filename
eventMask
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
Also see
eventlog.next()
exit()
This function stops a script that is presently running.
Type
TSP-Link accessible
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
waitcomplete()
2450-901-01 Rev. B/September 2013
Affected by
A string that represents the name of the file to be saved
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
•
(on page 8-55)
Affected by
(on page 8-252)
Section 8: TSP command reference
Where saved
Default value
on a USB flash drive
Where saved
Default value
8-57