User manual
Section 2: TSP Programming Fundamentals Series 3700 System Switch/Multimeter Reference Manual
2-30 3700S-901-01 Rev. C / July 2008
Script management
Retrieving a user script
You can retrieve the source code contained in a user script from nonvolatile
memory, which can then be modified and saved as a user script under the same
name or a new name.
NOTE You can load a modified user script into the Series 3700 using the
same name or a new name.
The following command returns a catalog listing of the user scripts stored in the
Series 3700:
script.user.catalog()
Example:
To retrieve the catalog listing for user scripts:
for name in script.user.catalog() do
print (name)
end
The following function retrieves the source code of a saved script. The script
chunk is returned, along with the shell keywords (loadscript or
loadandrunscript, and endscript):
myscript.list()
Where: myscript is the user-defined name of the script.
Example:
To retrieve the source of a saved script named "test7":
userscriptlist = test7.list()
print (userscriptlist)
NOTE To see the contents of the anonymous script, use the
script.list.anonymous.list() command.