
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-348
3700AS-901-01 Rev. D/June 2018
scriptVar.autorun
This attribute controls the autorun state of a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Not applicable
See
Details
See
Details
Usage
scriptVar
.autorun = "
state
"
state = scriptVar.
autorun
scriptVar
The name of the variable that references the script
state
String that indicates whether or not the script runs automatically when powered on:
▪
yes
: Script runs automatically
▪
no
: Script does not run automatically
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 keeps the setting.
Example
test5.autorun = "yes"
test5.save()
Assume a script named
test5
is in the run-time environment.
The next time the instrument is turned on,
test5
script
automatically loads and runs.
Also see
None
scriptVar.list()
This function generates a script listing.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
scriptVar
.list()
scriptVar
The name of the variable that references the script