Section 4: Triggering Series 2600B System SourceMeter® instrument Reference Manual
4-42 2600BS-901-01 Rev. F/August 2021
Remote digital I/O commands
Commands that control and access the digital I/O port are summarized in the following table. See the
TSP command reference (on page 9-1) for complete details on these commands. See the following
table for decimal and hexadecimal values used to control and access the digital I/O port and
individual lines. Use these commands to trigger the 2600B using external trigger pulses applied to the
digital I/O port, or to provide trigger pulses to external devices.
Use these commands to perform basic steady-state digital I/O operations such as reading and writing
to individual I/O lines or reading and writing to the entire port.
You can use the digital I/O lines for both input and output. You must write a 1 to all digital I/O lines
that are to be used as inputs.
Remote digital I/O commands
Read one digital I/O input line
digio.writebit(bit, data)
Write data to one digital I/O output line
Write data to digital I/O port
digio.writeprotect = mask
Write protect mask to digital I/O port
Digital I/O programming example
The programming commands below illustrate how to set bit B1 of the digital I/O port high, and then
read the entire port value.
digio.trigger[1].mode = digio.TRIG_BYPASS
-- Set bit B1 high.
digio.writebit(1,1)
-- Read digital I/O port.
data = digio.readport()
Using output enable
Output enable is only available on the 2601B, 2602B, and 2604B.
The digital I/O port provides an output enable line for use with a test fixture switch. When properly
used, the output of the instrument turns OFF when the lid of the test fixture is opened. See “DUT test
connections” in the Series 2600B User's Manual for important safety information when using a
test fixture.