19-58
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
exit
This function is used to terminate a script that is presently running.
file I/O
You can use the file I/O commands to open, close, write data, or to read a file.
eventlog.overwritemethod
Attribute
Indicates whether new entries will be logged and old entries deleted.
Default
eventlog.DISCARD_OLDEST
TSP-Link
accessibility
This attribute can be accessed from a remote TSP-Link node.
Usage
method = eventlog.overwritemethod
-- Reads overwrite method.
eventlog.overwritemethod = method
-- Writes overwrite method.
method
The overwrite setting.
Set
method
to one of the following values:
0
or
DISCARD_NEWEST
New entries will not be logged.
1
or
DISCARD_OLDEST
Old entries will be deleted as new events are logged.
Remarks
• Controls how the event log processes new events if the event log is full.
• When this attribute is set to
eventlog.DISCARD_NEWEST
, new entries will be not be logged.
• When this attribute is set to
eventlog.DISCARD_OLDEST
, the oldest entry is discarded when a
new entry is added.
Example
Configure the event log to ignore new entries when the log is full:
eventlog.overwritemethod = 0
exit
Function
Stops execution of a script.
TSP-Link
accessibility
This function cannot be accessed from a remote TSP-Link node.
Usage
exit()
Remarks
• Terminates script execution when called from a script that is being executed.
This command will not wait for overlapped commands to complete before terminating script
execution. If overlapped commands are required to finish, use the
waitcomplete
function prior to calling
exit
.
Also see
file:close
Function
Closes a file.
TSP-Link
accessibility
This function cannot be accessed from a remote TSP-Link node.
Usage
file:close()
file
The file descriptor to close.
Remarks
•
This command is equivalent to
io.close(file)
.
•
Note that files are automatically closed when the file descriptors are garbage collected.
Also see