Section 7: Command reference Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-82 2651A-901-01 Rev. A / March 2011
Also see
eventlog.all() (on page 7-78)
eventlog.clear()
(on page 7-78)
eventlog.count
(on page 7-79)
eventlog.enable
(on page 7-80)
eventlog.next() (on page 7-80)
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
waitcomplete() (on page 7-374)
fileVar:close()
This function closes the file that is represented by the fileVar variable.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
fileVar:close()
fileVar
The file descriptor variable to close
Details
This command is equivalent to io.close(fileVar).
Note that files are automatically closed when the file descriptors are garbage collected.