Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-45
createconfigscript()
This function creates a setup file that captures most of the present settings of the instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
createconfigscript(
scriptName
)
scriptName
A string that represents the name of the script that will be created
Details
If
scriptName
is set to the name of an existing script, an event message is returned. You must
delete the existing script before using the same script name. This function does not automatically
overwrite existing scripts with the same name. This includes the
autoexec
script, which runs
automatically when the instrument power is turned on. You can set
scriptName
to
autoexec
, but
you must delete the existing
autoexec
script first using the
autoexec.delete()
command.
Once created, the script that contains the settings can be run and edited like any other script.
Example
createconfigscript("myConfigurationScript")
Captures the present settings of the instrument
into a script named
myConfigurationScript
.
Also see
(on page 2-137)
(on page 8-99)
dataqueue.add()
This function adds an entry to the data queue.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
result
= dataqueue.add(
value
)
result
= dataqueue.add(
value
,
timeout
)
result
The resulting value of
true
or
false
based on the success of the function
value
The data item to add;
value
can be of any type
timeout
The maximum number of seconds to wait for space in the data queue