Section 3: Functions and features
2606B System SourceMeter® Instrument Reference Manual
3-78
2606B-901-01 Rev. B / May 2018
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
The 2606B has a digital input/output port on each module that can be used to control external digital
circuitry. For example, you can use a handler that is used to perform binning operations with a digital
I/O port.
Port configuration
The digital I/O port, a standard female DB-25 connector (shown below), is on the front panel.
Figure 74: Digital I/O port
For a schematic diagram of the digital I/O hardware, refer to the
2606B Specifications
on the
The port provides 14 digital I/O lines. Each output is set high (+5 V) or low (0 V) and can read high or
low logic levels. Each digital I/O line is an open-drain signal.
The +5 VDC output can be used to drive external logic circuitry. Maximum combined current output
for all lines is 250 mA. These lines are protected by a self-resetting fuse with an hour recovery time.