Scriptvar.source - Keithley 2600B Reference Manual

System sourcemeter instrument
Hide thumbs Also See for 2600B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual

scriptVar.source

This attribute contains the source code of a script.
Type
TSP-Link accessible
Attribute (RW)
No
(see Details)
Usage
code = scriptVar.source
scriptVar.source = nil
scriptVar
code
Details
The loadscript or loadandrunscript and endscript keywords are not included in the source
code.
The body of the script is a single string with lines separated by the new line character.
The instrument automatically stores the source for all scripts that are loaded on the instrument. To
free up memory or to obfuscate the code, assign nil to the source attribute of the script. Although
this attribute is writable, it can only be set to the nil value.
Example
test7 = script.new("display.clear() display.settext('Hello from my test')", "")
print(test7.source)
This example creates a script called "test7" that displays a message on the front panel and retrieves the
source code.
Output:
display.clear() display.settext('Hello from my test')
Also see
scriptVar.list()
serial.baud
This attribute configures the baud rate for the RS-232 port.
Type
TSP-Link accessible
Attribute (RW)
Yes
Usage
baud = serial.baud
serial.baud = baud
baud
2600BS-901-01 Rev. C / August 2016
Affected by
Not applicable
The name of the variable that references the script that contains the source code
The body of the script
(on page 7-183)
Affected by
Not applicable
The baud rate (300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600 or
115200)
Section 7: TSP command reference
Where saved
Default value
Not saved
Not applicable
Where saved
Default value
Nonvolatile memory
9600
7-187

Advertisement

Table of Contents
loading

Table of Contents