Interactive SourceMeter® Instrument Reference Manual Section 8:
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
Usage
createconfigscript(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
Saving setups (on page 2-137)
script.delete() (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)
The resulting value of true or false based on the success of the function
value
The maximum number of seconds to wait for space in the data queue