Keithley SourceMeter 2600 Series Reference Manual page 92

Table of Contents

Advertisement

2-40 TSP Programming Fundamentals
Displayed messages and input prompts are used in scripts to prompt the operator
to enter parameter values from the front panel. See
section) for more information.
User scripts
User scripts can be written using your own program or the Test Script Builder.
User scripts are loaded into the Series 2600 and can be saved in non-volatile
memory. Scripts not saved in non-volatile memory will be lost when the Series
2600 is turned off.
Script examples
Script using commands and statements only
The script in
step. The five current readings are returned to the host computer:
Table 2-1
Example script to sweep V and measure I
Test Script Builder
current = {}
smua.source.output = smua.OUTPUT_ON
for j = 1, 5 do
smua.source.levelv = j
current[j] = smua.measure.i()
print(current[j])
end
smua.source.output = smua.OUTPUT_OFF
NOTE
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
Table 2-1
sweeps voltage (1V to 5V) and measures current at each
loadscript
endscript
When creating a script using the Test Script Builder, only
the chunk is typed in as shown above. See
Script
Builder" earlier in Section 2 for details on creating,
loading and running the script.
When creating a script using a programming language,
shell commands must be included to manage interactions
between the host computer and TSP. The
command loads the script into the Series 2600 and
signifies the end of the script.
endscript
Return to
Section 2 topics
"Interactive
User's Program Script
current = {}
smua.source.output = smua.OUTPUT_ON
for j = 1, 5 do
smua.source.levelv = j
current[j] = smua.measure.i()
print(current[j])
end
smua.source.output = smua.OUTPUT_OFF
script" (later in this
"Using Test
loadscript

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents