2470 High Voltage SourceMeter Instrument Reference Manual
Section 13: Introduction to TSP commands
2470-901-01 Rev. A /
May
2019
13-9
Saving a script to a USB flash drive
You can save scripts to a USB flash drive.
To save a script to an external USB flash drive:
1.
Load a script.
2.
Insert a USB flash drive into the USB port on the front panel.
3.
Send the command
scriptVar
.save("/usb1/
filename
.tsp")
, where
scriptVar
is the
variable referencing the script and
filename
is the name of the file.
Rename a script
To rename a script in the runtime environment:
1.
Load the script into the runtime environment with a different name.
2.
Delete the previous version of the script.
To rename a script in nonvolatile memory:
Send the commands:
scriptVar
= script.load(
file
)
scriptVar
.save()
Where:
scriptVar
is the name of variable that references the script
file
is the path and file name of the script file to load
For example, to load a script named
test8
from the USB flash drive and save it to nonvolatile
memory, send the commands:
test8 = script.load("/usb1/test8.tsp")
test8.save()
If the new name is the same as a name that is already used for a script, an event message is
displayed and the script is not saved.