Scriptvar.save(); Scriptvar.source - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference

scriptVar.save()

This function saves the script to nonvolatile memory or to a USB flash drive.
Type
TSP-Link accessible
Function
No
Usage
scriptVar.save()
scriptVar.save(filename)
scriptVar
filename
Details
The scriptVar.save() function saves a script to nonvolatile memory or a USB flash drive. The root folder of
the USB flash drive has the absolute path /usb1/.
If no filename is specified (the filename parameter is an empty string), the script is saved to internal nonvolatile
memory. Only a script with filename defined can be saved to internal nonvolatile memory. If a filename is
given, the script is saved to the USB flash drive.
If no filename is specified (the filename parameter is an empty string), the script is saved to internal nonvolatile
memory. Only a script with filename defined can be saved to internal nonvolatile memory. If a filename is
given, the script is saved to the USB flash drive.
You can add the file extension, but it is not required. The only allowed extension is .tsp (see Example 2).
Example 1
test8.save()
Example 2
test8.save("/usb1/myScript.tsp")
Also see
Save a user script

scriptVar.source

This attribute contains the source code of a script.
Type
TSP-Link accessible
Attribute (RW)
No
(see Details)
Usage
code = scriptVar.source
scriptVar.source = nil
scriptVar
code
7-172
Series 2600B System SourceMeter® Instrument Reference Manual
Affected by
The name of variable that references the script
The file name to use when saving the script to a USB flash drive
(on page 6-8)
Affected by
Not applicable
The name of the variable that references the script that contains the source code
The body of the script
Where saved
Default value
Saves the script referenced by the variable
test8 to nonvolatile memory.
Saves the script referenced by the variable
test8 to a file named myScript.tsp on your
flash drive.
Where saved
Default value
Not saved
Not applicable
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents