![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750480.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-167
scriptVar.save()
This function saves the script to nonvolatile memory or to a USB flash drive.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
scriptVar
.save()
scriptVar
.save(
filename
)
scriptVar
The name of variable that references the script
filename
The file name to use when saving the script to a USB flash drive
Details
The
scriptVar
.save()
function only saves a script to nonvolatile memory or a USB flash drive.
If no
filename
is given, the script will be saved to internal nonvolatile memory. Only a named script (the script's
name attribute is not an empty string) can be saved to internal nonvolatile memory. If a
filename
is given, the
script will be saved to the USB flash drive.
You are not required to add the file extension, but if you would like to, the only allowed extension is
.tsp
(see
Example 2).
Example 1
test8.save()
Saves the script referenced by the variable
test8
to nonvolatile memory.
Example 2
test8.save("/usb1/myScript.tsp")
Saves the script referenced by the variable
test8
to a file named
myScript.tsp
on your
flash drive.
Also see
scriptVar.source
This attribute contains the source code of a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
(see
Details)
No
Not applicable
Not saved
Not applicable
Usage
code
=
scriptVar
.source
scriptVar
.source = nil
scriptVar
The name of the variable that references the script that contains the source code
code
The body of the script
Содержание 2657A
Страница 3: ......