Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 3: Functions and features
2651A-901-01 Rev. A / March 2011
3-83
The following programming example illustrates how to prompt the user to press the
EXIT (LOCAL)
key to abort the script, or any other key to continue it:
display.clear()
display.setcursor(1, 1)
display.settext("Press EXIT to Abort")
display.setcursor(2, 1)
display.settext("or any key to continue")
key = display.waitkey()
display.clear()
display.setcursor(1, 1)
if key == 75 then
display.settext("Test
Aborted")
exit()
else
display.settext("Test
Continuing")
end
The above code captures the key that is pressed by the operator. The key code value for the
EXIT
(LOCAL) key is 75. If the EXIT (LOCAL) key is pressed, the script aborts. If any other key is pressed,
the script continues.
Digital I/O
Digital I/O port
The Keithley Instruments Model 2651A High Power System SourceMeter
®
Instrument has a digital
input/output port that can be used to control external digital circuitry. For example, a handler that is
used to perform binning operations can be used with a digital I/O port.
Port configuration
The digital I/O port, a standard female DB-25 connector (shown below), is located on the rear panel.
Figure 67: Digital I/O port
1
14
13
25
DIGITAL I/O
1 = Digital I/O #1
2 = Digital I/O #2
3 = Digital I/O #3
4 = Digital I/O #4
5 = Digital I/O #5
6 = Digital I/O #6
7 = Digital I/O #7
8 = Digital I/O #8
9 = Digital I/O #9
10 = Digital I/O #10
11 = Digital I/O #11
12 = Digital I/O #12
13 = Digital I/O #13
14 = Digital I/O #14
15-21 = Ground
22 = +5 V
23 = +5 V
24 = Output enable (OE)
25 = +5 V