Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-76
2470-901-01 Rev. A /
May
2019
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 14-292)
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
Details
Note that files are automatically closed when the file descriptors are garbage collected.
Example
file_num = file.open("/usb1/GENTRIGGER", file.MODE_WRITE)
file.close(file_num)
Open the file
GENTRIGGER
for writing, then close it.
Also see
(on page 14-79)