
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-72
2461-901-01 A/November 2015
Details
This command saves all event log entries to a USB flash drive.
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("/usb1/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-340)
file.close()
This function closes a file on the USB flash drive.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
file.close(
fileNumber
)
fileNumber
The file number returned from the
file.open()
function to close