![Keithley 2651A Reference Manual Download Page 465](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729465.webp)
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 7: Command reference
2651A-901-01 Rev. A / March 2011
7-157
script.newautorun()
This function is identical to the
script.new()
function, but it creates a script with the autorun attribute set to
"yes"
.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
scriptVar
= script.newautorun(
code
)
scriptVar
= script.newautorun(
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
Details
The
script.newautorun()
function is identical to the
script.new()
function, except that the autorun
attribute of the script is set to
"yes"
.
Also see
Create a script using the script.new() command
Global variables and the script.user.scripts table
(on page 6-39)
(on page 6-4)
(on page 7-162)
(on page 7-155)
script.restore()
This function restores a script that was removed from the runtime environment.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
script.restore(
name
)
name
The name of the script to be restored
Details
This command copies the script from nonvolatile memory back into the runtime environment, and it creates a
global variable with the same name as the name of the script.
Example
script.restore("test9")
Restores a script named "test9" from nonvolatile
memory.