Script.newautorun(); Script.restore() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual

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
Function
No
Usage
scriptVar = script.newautorun(code)
scriptVar = script.newautorun(code, name)
scriptVar
code
name
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
Named scripts
scriptVar.save()
script.new()
(on page 7-155)

script.restore()

This function restores a script that was removed from the runtime environment.
Type
TSP-Link accessible
Function
No
Usage
script.restore(name)
name
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")
2651A-901-01 Rev. A / March 2011
Affected by
The name of the variable that will reference the script
A string containing the body of the script
The name of the script
(on page 6-4)
(on page 7-162)
Affected by
The name of the script to be restored
Where saved
(on page 6-40)
(on page 6-39)
Where saved
Restores a script named "test9" from nonvolatile
memory.
Section 7: Command reference
Default value
Default value
7-157

Advertisement

Table of Contents
loading

Table of Contents