Script.newautorun(); Script.restore() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference

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. The script is also automatically run immediately after it is created.
Example
NewAuto = script.newautorun("print('Hello from new auto run command')",
'NewAuto')
print(NewAuto.autorun)
print(NewAuto.name)
Creates a new script called NewAuto that automatically has the autorun attribute set to yes after it is
created. The name attribute's value is set to "NewAuto".
Output:
Hello from new auto run command
yes
NewAuto
Also see
Create a script using the script.new() command
Global variables and the script.user.scripts table
Named scripts
script.new()
(on page 7-165)
scriptVar.save()

script.restore()

This function restores a script that was removed from the run-time environment.
Type
TSP-Link accessible
Function
No
Usage
script.restore(name)
name
7-166
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-172)
Affected by
The name of the script to be restored
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
(on page 6-40)
(on page 6-38)
Where saved
Default value
Default value
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents