Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-156
707B-901-01 Rev. B / January 2015
Example 2
print(script.anonymous.source)
Retrieves the source of the anonymous
script.
Also see
(on page 7-160)
(on page 7-162)
(on page 7-162)
(on page 7-163)
(on page 7-164)
(on page 7-165)
script.delete()
This function deletes a script from nonvolatile memory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
script.delete(
scriptName
)
scriptName
The string that represents the name of the script
Example
script.delete("test8")
Deletes a user script named "
test8
" from
nonvolatile memory.
Also see
Delete user scripts from the instrument
(on page 6-41)
(on page 7-164)
script.new()
This function creates a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
scriptVar
= script.new(
code
)
scriptVar
= script.new(
code
,
name
)
scriptVar
The name of the variable that will reference the script
code
A string containing the body of the script
name
The name of the script