Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-160
2606B-901-01 Rev. B / May 2018
This function will only save to a USB flash drive.
You are not required to qualify the path to the USB flash drive, but you can add
/usb1/
before the
fileName
(see Example 2).
Example 1
savebuffer(smua.nvbuffer1, "csv",
"mybuffer.csv")
Save
smua
dedicated reading buffer 1 as a
CSV file named
mybuffer.csv
.
Example 2
savebuffer(smua.nvbuffer1, "csv",
"/usb1/mybuffer.csv")
Save
smua
dedicated reading buffer 1 to an
installed USB flash drive as a CSV file named
mybuffer.csv
.
Also see
script.anonymous
This is a reference to the anonymous script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
No
See
Details
See
Details
Not applicable
Usage
scriptVar
= script.anonymous
scriptVar
The name of the variable that references the script
Details
You can use the
script.anonymous
script like any other script. Also, you can save the anonymous
script as a user script by giving it a name.
This script is replaced by loading a script with the
loadscript
or
loadandrunscript
commands
when they are used without a name.
Example 1
script.anonymous.list()
Displays the content of the anonymous script.
Example 2
print(script.anonymous.source)
Retrieves the source of the anonymous script.
Also see
(on page 6-3)
(on page 7-166)
(on page 7-167)
(on page 7-167)
(on page 7-168)
(on page 7-169)
(on page 7-170)