Scriptvar.autorun - 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
Example
for name in script.user.catalog() do
print(name)
end
Also see
None

scriptVar.autorun

This attribute controls the autorun state of a script.
Type
TSP-Link accessible
Attribute (RW)
No
Usage
scriptVar.autorun = state
state = scriptVar.autorun
scriptVar
state
Details
Autorun scripts run automatically when the instrument is turned on. You can set any number of scripts to autorun.
The run order for autorun scripts is arbitrary, so make sure the run order is not important.
The default value for scriptVar.autorun depends on how the script was loaded. The default is "no" if the
script was loaded with loadscript or script.new(). It is "yes" for scripts loaded with loadandrunscript
or script.newautorun().
Make sure to save the script in nonvolatile memory after setting the autorun attribute so that the
instrument will retain the setting.
Example
test5.autorun = "yes"
test5.save()
Also see
None
2651A-901-01 Rev. A / March 2011
Affected by
Not applicable
The name of the variable that references the script
Whether or not the script runs automatically when powered on:
"yes" (script runs automatically)
"no" (script does not run automatically)
NOTE
Assume a script named "test5" is in the runtime
environment.
The next time the instrument is turned on, "test5"
script automatically loads and runs.
Retrieve the catalog listing for user scripts.
Where saved
Default value
See Details
See Details
Section 7: Command reference
7-159

Advertisement

Table of Contents
loading

Table of Contents