Display User-Defined Messages - Keithley 2601 Reference Manual

System sourcemeter 2600 series (smu)
Hide thumbs Also See for 2601:
Table of Contents

Advertisement

Section 2: TSP Programming
Use the following code fragment to write to one bit of the Digital I/O port. The I/O bit is then read
and the state is returned to the PC where it is displayed.
digio.writebit(4,0)
data=digio.readbit(4)
print(data)

Display user-defined messages

The operator can define and display messages on the front panel display of the SourceMeter. The
following code fragment displays the "Test in Process" message on the SourceMeter display:
display.clear()
display.settext("Test in Process")
Displayed messages and input prompts are used in scripts to prompt the operator to enter
parameter values from the front panel. See
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
current readings are returned to the host computer:
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
2-34
Table 2-1
sweeps voltage (1V to 5V) and measures current at each step. The five
Table 2-1
Example script to sweep V and measure I
Return to
Series 2600 System SourceMeter® Instruments Reference Manual
-- Writes a "0" to I/O bit 4.
-- Reads I/O bit 4.
-- PC displays state of I/O bit 4.
-- Clears display of messages.
-- Displays message.
"Interactive
script" (later in this section) for more
User's Program Script
loadscript
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
endscript
Section Topics
2600S-901-01 Rev. C / January 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents