Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. C / August 2016
7-163
Example
node[3].setglobal("x", 5)
Sets the global variable
x
on node 3 to the value of 5.
Also see
(on page 7-162)
(on page 6-52)
opc()
This function sets the operation complete status bit when all overlapped commands are completed.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
opc()
Details
This function causes the operation complete bit in the Standard Event Status Register to be set when
all previously started local overlapped commands are complete.
Note that each node independently sets its operation complete bits in its own status model. Any
nodes that are not actively performing overlapped commands set their bits immediately. All remaining
nodes set their own bits as they complete their own overlapped commands.
Also see
(on page 7-413)
os.remove()
This function deletes the file or directory with a given name.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
success
,
msg
= os.remove(
filename
)
success
A success indicator (
true
or
nil
)
msg
A message value (
nil
or an error message)
filename
A string representing the name of the file or directory to delete
Details
Directories must be empty before using the
os.remove()
function to delete them.
If this function fails, it returns
nil
(for
success
) and an error message string (for
msg
).
Example
os.remove("testFile")
Delete the file named
testFile
.